mirror of https://git.ffmpeg.org/ffmpeg.git
Merge remote-tracking branch 'qatar/master'
* qatar/master:
rtpdec_h264: Check the return value of functions doing allocations
See: c5f15f40b9
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
12e8104120
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue