[FFmpeg-cvslog] r19693 - trunk/libavformat/matroskadec.c
aurel
subversion
Mon Aug 24 15:40:30 CEST 2009
Author: aurel
Date: Mon Aug 24 15:40:30 2009
New Revision: 19693
Log:
matroskadec: factorize some code
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c Mon Aug 24 12:59:14 2009 (r19692)
+++ trunk/libavformat/matroskadec.c Mon Aug 24 15:40:30 2009 (r19693)
@@ -1254,7 +1254,6 @@ static int matroska_read_header(AVFormat
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(AVFormat
} 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(AVFormat
} 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,
More information about the ffmpeg-cvslog
mailing list