changeset 1455:e0e7ac1b8601 libavformat

Ensure codec_id = CODEC_ID_NONE for unknown codecs (don't reuse previous one). Patch by Steve Lhomme % slhomme A divxcorp P com % Original thread: Date: Mon, 06 Nov 2006 21:20:14 +0100 Subject: [Ffmpeg-devel] [PATCH] Matroska known/unknown codec
author aurel
date Mon, 06 Nov 2006 23:14:37 +0000
parents d7b946a1ec57
children 34d0d965a0d0
files matroska.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroska.c	Mon Nov 06 23:07:54 2006 +0000
+++ b/matroska.c	Mon Nov 06 23:14:37 2006 +0000
@@ -2138,11 +2138,11 @@
     /* Have we found a cluster? */
     if (res == 1) {
         int i, j;
-        enum CodecID codec_id= CODEC_ID_NONE;
         MatroskaTrack *track;
         AVStream *st;
 
         for (i = 0; i < matroska->num_tracks; i++) {
+            enum CodecID codec_id = CODEC_ID_NONE;
             void *extradata = NULL;
             int extradata_size = 0;
             track = matroska->tracks[i];