Mercurial > libavformat.hg
changeset 485:36b0feeb9c1f libavformat
flush audio encoder buffers at the end
fix vorbis in nut again
author | michael |
---|---|
date | Tue, 22 Jun 2004 21:14:01 +0000 |
parents | 43ef3cc33629 |
children | 6e685aedef2e |
files | utils.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Jun 20 11:28:01 2004 +0000 +++ b/utils.c Tue Jun 22 21:14:01 2004 +0000 @@ -1980,6 +1980,10 @@ AVStream *st= s->streams[ pkt->stream_index]; compute_pkt_fields2(st, pkt); + + //FIXME/XXX/HACK drop zero sized packets + if(st->codec.codec_type == CODEC_TYPE_AUDIO && pkt->size==0) + return 0; if(pkt->dts == AV_NOPTS_VALUE) return -1;