diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-08-24 13:40:30 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-08-24 13:40:30 +0000 |
commit | e26444079c5744ea3ab70bb8081c8eb2730710b0 (patch) | |
tree | f70e1c8acf3f86c676810a1581e9c5b4a29ff434 /libavformat | |
parent | deb1b2b699ec32efe96864205cf7755b3192579b (diff) | |
download | ffmpeg-streaming-e26444079c5744ea3ab70bb8081c8eb2730710b0.zip ffmpeg-streaming-e26444079c5744ea3ab70bb8081c8eb2730710b0.tar.gz |
matroskadec: factorize some code
Originally committed as revision 19693 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 25d7341..0ab1cc9 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1254,7 +1254,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) ff_get_wav_header(&b, st->codec, track->codec_priv.size); codec_id = st->codec->codec_id; extradata_offset = 18; - track->codec_priv.size -= extradata_offset; } else if (!strcmp(track->codec_id, "V_QUICKTIME") && (track->codec_priv.size >= 86) && (track->codec_priv.data != NULL)) { @@ -1306,7 +1305,6 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) } else if (codec_id == CODEC_ID_RV10 || codec_id == CODEC_ID_RV20 || codec_id == CODEC_ID_RV30 || codec_id == CODEC_ID_RV40) { extradata_offset = 26; - track->codec_priv.size -= extradata_offset; } else if (codec_id == CODEC_ID_RA_144) { track->audio.out_samplerate = 8000; track->audio.channels = 1; @@ -1327,9 +1325,9 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) } else { st->codec->block_align = track->audio.sub_packet_size; extradata_offset = 78; - track->codec_priv.size -= extradata_offset; } } + track->codec_priv.size -= extradata_offset; if (codec_id == CODEC_ID_NONE) av_log(matroska->ctx, AV_LOG_INFO, |