Commit 5d091064 authored by bcoudurier's avatar bcoudurier

ensure pes buffer is set to avoid segv

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19836 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf48e39f
......@@ -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