Commit 8ea5ee10 authored by James Almer's avatar James Almer

avcodec/libopenh264dec: fix return error value when h264_mp4toannexb_bsf is not found

parent 94ec89eb
...@@ -116,7 +116,7 @@ static int init_bsf(AVCodecContext *avctx) ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment