Commit 12e81041 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtpdec_h264: Check the return value of functions doing allocations

See: c5f15f40Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 09c13ff7 9aba0a6f
...@@ -248,7 +248,8 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, ...@@ -248,7 +248,8 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
if (pass == 0) { if (pass == 0) {
/* now we know the total size of the packet (with the /* now we know the total size of the packet (with the
* start sequences added) */ * start sequences added) */
av_new_packet(pkt, total_length); if ((result = av_new_packet(pkt, total_length)) < 0)
return result;
dst = pkt->data; dst = pkt->data;
} else { } else {
assert(dst - pkt->data == total_length); assert(dst - pkt->data == total_length);
......
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