Commit 4a5dbeed authored by aurel's avatar aurel

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6923 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3c8b8f2c
...@@ -2138,11 +2138,11 @@ matroska_read_header (AVFormatContext *s, ...@@ -2138,11 +2138,11 @@ matroska_read_header (AVFormatContext *s,
/* Have we found a cluster? */ /* Have we found a cluster? */
if (res == 1) { if (res == 1) {
int i, j; int i, j;
enum CodecID codec_id= CODEC_ID_NONE;
MatroskaTrack *track; MatroskaTrack *track;
AVStream *st; AVStream *st;
for (i = 0; i < matroska->num_tracks; i++) { for (i = 0; i < matroska->num_tracks; i++) {
enum CodecID codec_id = CODEC_ID_NONE;
void *extradata = NULL; void *extradata = NULL;
int extradata_size = 0; int extradata_size = 0;
track = matroska->tracks[i]; track = matroska->tracks[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment