Commit 8bb7dda2 authored by Baptiste Coudurier's avatar Baptiste Coudurier

ensure pes buffer is set to avoid segv

Originally committed as revision 19836 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8956f680
......@@ -1027,7 +1027,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
}
break;
case MPEGTS_PAYLOAD:
if (buf_size > 0) {
if (buf_size > 0 && pes->buffer) {
if (pes->data_index+buf_size > pes->total_size) {
new_pes_packet(pes, ts->pkt);
pes->total_size = MAX_PES_PAYLOAD;
......
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