cbs: Add a missing return value check
authorMark Thompson <sw@jkqxz.net>
Thu, 9 Nov 2017 01:04:11 +0000 (01:04 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 12 Nov 2017 16:00:27 +0000 (16:00 +0000)
libavcodec/cbs.c

index 7440914..3baa31a 100644 (file)
@@ -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;