diff matroskadec.c @ 5251:75a5bf71fad3 libavformat

matroskadec: don't overwrite extradata already read by ff_get_wav_header()
author aurel
date Thu, 01 Oct 2009 21:14:46 +0000
parents 4b736fd7d0fd
children ae691877fdea
line wrap: on
line diff
--- 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;