ensure pes buffer is set to avoid segv

Originally committed as revision 19836 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Baptiste Coudurier 16 years ago
parent 8956f68014
commit 8bb7dda2f7
  1. 2
      libavformat/mpegts.c

@ -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;

Loading…
Cancel
Save