OSDN Git Service

avcodec/libopenh264dec: fix return error value when h264_mp4toannexb_bsf is not found
authorJames Almer <jamrial@gmail.com>
Thu, 25 May 2017 02:31:59 +0000 (23:31 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 25 May 2017 02:31:59 +0000 (23:31 -0300)
libavcodec/libopenh264dec.c

index 26cc8db..a362be7 100644 (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)