[FFmpeg-cvslog] bitstream_filter: Add missing error check

Derek Buitenhuis git at videolan.org
Fri Jul 7 22:34:26 EEST 2017


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu Jul  6 14:11:28 2017 -0400| [51db262312558fc62b8b89a138b280e612f37509] | committer: Derek Buitenhuis

bitstream_filter: Add missing error check

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51db262312558fc62b8b89a138b280e612f37509
---

 libavcodec/bitstream_filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c
index e9291aba19..8599b90d4a 100644
--- a/libavcodec/bitstream_filter.c
+++ b/libavcodec/bitstream_filter.c
@@ -122,6 +122,8 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
                 shorthand[0] = opt->name;
 
             ret = av_opt_set_from_string(priv->ctx->priv_data, bsfc->args, shorthand, "=", ":");
+            if (ret < 0)
+                return ret;
         }
 
         ret = av_bsf_init(priv->ctx);



More information about the ffmpeg-cvslog mailing list