You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/libopenh264dec: fix return error value when h264_mp4toannexb_bsf is not found
This commit is contained in:
@@ -116,7 +116,7 @@ static int init_bsf(AVCodecContext *avctx)
|
|||||||
// packets through unchanged.
|
// packets through unchanged.
|
||||||
filter = av_bsf_get_by_name("h264_mp4toannexb");
|
filter = av_bsf_get_by_name("h264_mp4toannexb");
|
||||||
if (!filter)
|
if (!filter)
|
||||||
return AVERROR_BUG;
|
return AVERROR_BSF_NOT_FOUND;
|
||||||
|
|
||||||
ret = av_bsf_alloc(filter, &s->bsf);
|
ret = av_bsf_alloc(filter, &s->bsf);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user