Commit 4f6a6e1f authored by Baptiste Coudurier's avatar Baptiste Coudurier

skip 0byte packets

Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a8fcaf40
......@@ -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