diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-27 16:43:04 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-03-27 16:43:04 +0000 |
commit | 4f6a6e1f81b555bd20f13132bd91f421e3d98452 (patch) | |
tree | fe702be4734a44e3748b8dcf01143d8786231f4d | |
parent | a8fcaf4019ccb7b5ca5e88f2544afab69c0a3e87 (diff) | |
download | ffmpeg-4f6a6e1f81b555bd20f13132bd91f421e3d98452.tar.gz |
skip 0byte packets
Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/adtsenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c index 239d0ab7c8..e67455ec80 100644 --- a/libavformat/adtsenc.c +++ b/libavformat/adtsenc.c @@ -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); |