Skip to content

Commit 4fa28a8

Browse files
committed
upipe_avfilter: don't use hardcoded extra hw frames
Caller can use the "extra_hw_frames" filter option to set a custom hw frame count if needed.
1 parent 5d5cefc commit 4fa28a8

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/upipe-av/upipe_av_internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
#include <libavutil/error.h>
4040
#include <libavcodec/avcodec.h>
4141

42-
/** extra hardware frames for decode and filter */
43-
#define UPIPE_AV_EXTRA_HW_FRAMES 32
44-
4542
/** @hidden */
4643
struct uref;
4744
/** @hidden */

lib/upipe-av/upipe_avfilter.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,9 +2152,6 @@ static int upipe_avfilt_init_buffer_from_first_frame(struct upipe *upipe,
21522152
if (device_ctx != NULL) {
21532153
AVFilterGraph *graph = upipe_avfilt->filter_graph;
21542154
for (int i = 0; i < graph->nb_filters; i++) {
2155-
#if LIBAVFILTER_VERSION_INT >= AV_VERSION_INT(7, 12, 100)
2156-
graph->filters[i]->extra_hw_frames = UPIPE_AV_EXTRA_HW_FRAMES;
2157-
#endif
21582155
graph->filters[i]->hw_device_ctx = av_buffer_ref(device_ctx);
21592156
if (graph->filters[i]->hw_device_ctx == NULL) {
21602157
upipe_err(upipe, "cannot alloc hw device context");

0 commit comments

Comments
 (0)