Skip to content

Commit 9f23f86

Browse files
ntocmassiot
authored andcommitted
upipe_avcdec: don't use hardcoded extra hw frames
Caller can use upipe_set_option("extra_hw_frames") to set a custom hw frame count if needed.
1 parent cdc37cb commit 9f23f86

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/upipe-av/upipe_avcodec_decode.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,6 @@ static bool upipe_avcdec_do_av_deal(struct upipe *upipe)
805805
upipe_throw_fatal(upipe, UBASE_ERR_EXTERNAL);
806806
return false;
807807
}
808-
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 11, 100)
809-
context->extra_hw_frames = UPIPE_AV_EXTRA_HW_FRAMES;
810-
#endif
811808
upipe_notice_va(upipe, "created %s hw device context (%s)",
812809
av_hwdevice_get_type_name(upipe_avcdec->hw_device_type),
813810
upipe_avcdec->hw_device ?: "default");

0 commit comments

Comments
 (0)