Revision 363c86ce

View differences:

libavformat/matroska.c
2193 2193
            enum CodecID codec_id = CODEC_ID_NONE;
2194 2194
            uint8_t *extradata = NULL;
2195 2195
            int extradata_size = 0;
2196
            int extradata_offset = 0;
2196 2197
            track = matroska->tracks[i];
2197 2198

  
2198 2199
            /* libavformat does not really support subtitles.
......
2262 2263
                }
2263 2264
            }
2264 2265

  
2266
            else if (codec_id == CODEC_ID_RV10 || codec_id == CODEC_ID_RV20 ||
2267
                     codec_id == CODEC_ID_RV30 || codec_id == CODEC_ID_RV40) {
2268
                extradata_offset = 26;
2269
                track->codec_priv_size -= extradata_offset;
2270
            }
2271

  
2265 2272
            if (codec_id == CODEC_ID_NONE) {
2266 2273
                av_log(matroska->ctx, AV_LOG_INFO,
2267 2274
                       "Unknown/unsupported CodecID %s.\n",
......
2290 2297
                if(st->codec->extradata == NULL)
2291 2298
                    return AVERROR_NOMEM;
2292 2299
                st->codec->extradata_size = track->codec_priv_size;
2293
                memcpy(st->codec->extradata, track->codec_priv,
2300
                memcpy(st->codec->extradata,track->codec_priv+extradata_offset,
2294 2301
                       track->codec_priv_size);
2295 2302
            }
2296 2303

  

Also available in: Unified diff