mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ensure pes buffer is set to avoid segv
Originally committed as revision 19836 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8956f68014
commit
8bb7dda2f7
@ -1027,7 +1027,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MPEGTS_PAYLOAD:
|
case MPEGTS_PAYLOAD:
|
||||||
if (buf_size > 0) {
|
if (buf_size > 0 && pes->buffer) {
|
||||||
if (pes->data_index+buf_size > pes->total_size) {
|
if (pes->data_index+buf_size > pes->total_size) {
|
||||||
new_pes_packet(pes, ts->pkt);
|
new_pes_packet(pes, ts->pkt);
|
||||||
pes->total_size = MAX_PES_PAYLOAD;
|
pes->total_size = MAX_PES_PAYLOAD;
|
||||||
|
Loading…
Reference in New Issue
Block a user