[libav-devel] [PATCH 04/14] cbs: Add a missing return value check

Mark Thompson sw at jkqxz.net
Thu Nov 9 02:07:46 CET 2017


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

diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c
index a46548454..e5819afce 100644
--- a/libavcodec/cbs.c
+++ b/libavcodec/cbs.c
@@ -274,7 +274,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;
 
-- 
2.11.0



More information about the libav-devel mailing list