diff options
author | Steve L'Homme | 2006-11-06 23:14:37 +0000 |
---|---|---|
committer | Aurelien Jacobs | 2006-11-06 23:14:37 +0000 |
commit | 063c8f266253114ed2dfc6ec62e15a01c5799db5 (patch) | |
tree | 5e08a2024e145a5694f00baf6c6e34a9562b067e /libavformat/matroska.c | |
parent | b9756b2e39840e1eeb4cb4ccb9a2b79e19093130 (diff) |
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
Originally committed as revision 6923 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroska.c')
-rw-r--r-- | libavformat/matroska.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c index 1cca2929b4..bab2990ec6 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -2138,11 +2138,11 @@ matroska_read_header (AVFormatContext *s, /* 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]; |