diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-06-22 21:14:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-22 21:14:01 +0000 |
commit | 6f82497728c49831e230bb631c4c3d6f5deff803 (patch) | |
tree | b7a02d38ef9f9427ffeb6874e6ce82bdcb1940c7 /libavformat | |
parent | f2e92ef2915333b233846e32cd2b0ac1f785516e (diff) | |
download | ffmpeg-6f82497728c49831e230bb631c4c3d6f5deff803.tar.gz |
flush audio encoder buffers at the end
fix vorbis in nut again
Originally committed as revision 3244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 010d8c3100..1420f496fc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1980,6 +1980,10 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){ 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; |