mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-05 23:00:02 +00:00
mpegenc: prevent a NULL pointer dereference
CC: libav-stable@libav.org
Bug-Id: CID 29261
(cherry picked from commit 065923b078
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
fbc20c3b85
commit
cce99f72d1
@ -1052,7 +1052,7 @@ retry:
|
||||
es_size -= stream->premux_packet->unwritten_size;
|
||||
stream->premux_packet = stream->premux_packet->next;
|
||||
}
|
||||
if (es_size)
|
||||
if (stream->premux_packet && es_size)
|
||||
stream->premux_packet->unwritten_size -= es_size;
|
||||
|
||||
if (remove_decoded_packets(ctx, s->last_scr) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user