[FFmpeg-cvslog] cbs: Add a missing return value check

Mark Thompson git at videolan.org
Thu Nov 16 02:10:35 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Thu Nov  9 01:04:11 2017 +0000| [476d301316aa5436c1d26cfc4858f36875637853] | committer: Mark Thompson

cbs: Add a missing return value check

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

 libavcodec/cbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c
index 7440914939..3baa31a4dd 100644
--- a/libavcodec/cbs.c
+++ b/libavcodec/cbs.c
@@ -260,7 +260,7 @@ int ff_cbs_write_packet(CodedBitstreamContext *ctx,
     if (err < 0)
         return err;
 
-    av_new_packet(pkt, frag->data_size);
+    err = av_new_packet(pkt, frag->data_size);
     if (err < 0)
         return err;
 



More information about the ffmpeg-cvslog mailing list