diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-09 04:04:11 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-11-12 19:00:27 +0300 |
commit | 476d301316aa5436c1d26cfc4858f36875637853 (patch) | |
tree | 31b88e246b9c72a3d7b04129a9aba699634233e4 /libavcodec/cbs.c | |
parent | c77da21e5d15056b8ba060ee5ce9e73f26653612 (diff) |
cbs: Add a missing return value check
Diffstat (limited to 'libavcodec/cbs.c')
-rw-r--r-- | libavcodec/cbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |