changeset 724:43e5b8eea963 libavformat

fix vorbis in avi
author michael
date Fri, 01 Apr 2005 21:21:12 +0000
parents 3a9f7fb4e7bb
children dc20bf86353f
files avienc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avienc.c	Wed Mar 30 00:36:30 2005 +0000
+++ b/avienc.c	Fri Apr 01 21:21:12 2005 +0000
@@ -624,7 +624,7 @@
     int size= pkt->size;
 
 //    av_log(s, AV_LOG_DEBUG, "%lld %d %d\n", pkt->dts, avi->packet_count[stream_index], stream_index);
-    while(enc->codec_type == CODEC_TYPE_VIDEO && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){
+    while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts > avi->packet_count[stream_index]){
         AVPacket empty_packet;
 
         av_init_packet(&empty_packet);