Commit 476d3013 authored by Mark Thompson's avatar Mark Thompson

cbs: Add a missing return value check

parent c77da21e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment