You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg, ffplay: Don't set refcounted_frames
It only affects the old and deprecated avcodec_decode_(video2|audio4) API which is no longer used here. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -2957,7 +2957,6 @@ static int init_input_stream(int ist_index, char *error, int error_len)
|
|||||||
ist->dec_ctx->thread_safe_callbacks = 1;
|
ist->dec_ctx->thread_safe_callbacks = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
av_opt_set_int(ist->dec_ctx, "refcounted_frames", 1, 0);
|
|
||||||
if (ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE &&
|
if (ist->dec_ctx->codec_id == AV_CODEC_ID_DVB_SUBTITLE &&
|
||||||
(ist->decoding_needed & DECODING_FOR_OST)) {
|
(ist->decoding_needed & DECODING_FOR_OST)) {
|
||||||
av_dict_set(&ist->decoder_opts, "compute_edt", "1", AV_DICT_DONT_OVERWRITE);
|
av_dict_set(&ist->decoder_opts, "compute_edt", "1", AV_DICT_DONT_OVERWRITE);
|
||||||
|
@@ -2628,8 +2628,6 @@ static int stream_component_open(VideoState *is, int stream_index)
|
|||||||
av_dict_set(&opts, "threads", "auto", 0);
|
av_dict_set(&opts, "threads", "auto", 0);
|
||||||
if (stream_lowres)
|
if (stream_lowres)
|
||||||
av_dict_set_int(&opts, "lowres", stream_lowres, 0);
|
av_dict_set_int(&opts, "lowres", stream_lowres, 0);
|
||||||
if (avctx->codec_type == AVMEDIA_TYPE_VIDEO || avctx->codec_type == AVMEDIA_TYPE_AUDIO)
|
|
||||||
av_dict_set(&opts, "refcounted_frames", "1", 0);
|
|
||||||
if ((ret = avcodec_open2(avctx, codec, &opts)) < 0) {
|
if ((ret = avcodec_open2(avctx, codec, &opts)) < 0) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user