aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-22 21:14:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-22 21:14:01 +0000
commit6f82497728c49831e230bb631c4c3d6f5deff803 (patch)
treeb7a02d38ef9f9427ffeb6874e6ce82bdcb1940c7 /libavformat
parentf2e92ef2915333b233846e32cd2b0ac1f785516e (diff)
downloadffmpeg-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.c4
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;