Mercurial > libavformat.hg
changeset 1043:09a392aa8b5a libavformat
skip 0byte packets
author | bcoudurier |
---|---|
date | Mon, 27 Mar 2006 16:43:04 +0000 |
parents | d641f2cdb692 |
children | 3aeb079a7e74 |
files | adtsenc.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/adtsenc.c Mon Mar 27 16:19:51 2006 +0000 +++ b/adtsenc.c Mon Mar 27 16:43:04 2006 +0000 @@ -97,6 +97,8 @@ 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);