skip 0byte packets

Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2006-03-27 16:43:04 +00:00
parent a8fcaf4019
commit 4f6a6e1f81

View File

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