Commit 3442aca5 authored by bcoudurier's avatar bcoudurier

skip 0byte packets


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5231 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9fb45a77
......@@ -97,6 +97,8 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
ADTSContext *adts = s->priv_data;
ByteIOContext *pb = &s->pb;
if (!pkt->size)
return 0;
if(adts->write_adts)
adts_write_frame_header(s, pkt->size);
put_buffer(pb, pkt->data, pkt->size);
......
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