# HG changeset patch # User aurel # Date 1254431686 0 # Node ID 75a5bf71fad343d127e75636170c5a0ad46eed3f # Parent 4b736fd7d0fdf1fa7a9f96f9c3ab7d3dbf357fe7 matroskadec: don't overwrite extradata already read by ff_get_wav_header() diff -r 4b736fd7d0fd -r 75a5bf71fad3 matroskadec.c --- a/matroskadec.c Thu Oct 01 21:14:05 2009 +0000 +++ b/matroskadec.c Thu Oct 01 21:14:46 2009 +0000 @@ -1351,6 +1351,7 @@ av_reduce(&st->codec->time_base.num, &st->codec->time_base.den, track->default_duration, 1000000000, 30000); + if (!st->codec->extradata) { if(extradata){ st->codec->extradata = extradata; st->codec->extradata_size = extradata_size; @@ -1364,6 +1365,7 @@ track->codec_priv.data + extradata_offset, track->codec_priv.size); } + } if (track->type == MATROSKA_TRACK_TYPE_VIDEO) { st->codec->codec_type = CODEC_TYPE_VIDEO;