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

This commit is contained in:
James Almer 2017-05-24 23:31:59 -03:00
parent 94ec89eb67
commit 8ea5ee10a2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static int init_bsf(AVCodecContext *avctx)
// packets through unchanged.
filter = av_bsf_get_by_name("h264_mp4toannexb");
if (!filter)
return AVERROR_BUG;
return AVERROR_BSF_NOT_FOUND;
ret = av_bsf_alloc(filter, &s->bsf);
if (ret < 0)