aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-27 16:43:04 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-03-27 16:43:04 +0000
commit4f6a6e1f81b555bd20f13132bd91f421e3d98452 (patch)
treefe702be4734a44e3748b8dcf01143d8786231f4d
parenta8fcaf4019ccb7b5ca5e88f2544afab69c0a3e87 (diff)
downloadffmpeg-4f6a6e1f81b555bd20f13132bd91f421e3d98452.tar.gz
skip 0byte packets
Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/adtsenc.c2
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);