[SCM] libav/experimental: Empty audio chunks in VMD are silent, not skipped

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:35:45 UTC 2013


The following commit has been merged in the experimental branch:
commit 8d6fc274faade5d442d19302bf4650ed2099fd73
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Wed Jan 21 13:26:01 2009 +0000

    Empty audio chunks in VMD are silent, not skipped
    
    Originally committed as revision 16710 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 76ded3d..1d21738 100644
--- a/libavformat/sierravmd.c
+++ b/libavformat/sierravmd.c
@@ -187,7 +187,7 @@ static int vmd_read_header(AVFormatContext *s,
             get_buffer(pb, chunk, BYTES_PER_FRAME_RECORD);
             type = chunk[0];
             size = AV_RL32(&chunk[2]);
-            if(!size)
+            if(!size && type != 1)
                 continue;
             switch(type) {
             case 1: /* Audio Chunk */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list