mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
Get rid of useless casts.
Originally committed as revision 20831 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
60a92a77f3
commit
17986563eb
@ -327,13 +327,13 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, ByteIOContext *pb,
|
|||||||
// av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
|
// av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
|
||||||
st->codec->time_base.den = fps * st->codec->time_base.num;
|
st->codec->time_base.den = fps * st->codec->time_base.num;
|
||||||
//XXX: do we really need that?
|
//XXX: do we really need that?
|
||||||
switch(((uint8_t*)st->codec->extradata)[4]>>4){
|
switch(st->codec->extradata[4]>>4){
|
||||||
case 1: st->codec->codec_id = CODEC_ID_RV10; break;
|
case 1: st->codec->codec_id = CODEC_ID_RV10; break;
|
||||||
case 2: st->codec->codec_id = CODEC_ID_RV20; break;
|
case 2: st->codec->codec_id = CODEC_ID_RV20; break;
|
||||||
case 3: st->codec->codec_id = CODEC_ID_RV30; break;
|
case 3: st->codec->codec_id = CODEC_ID_RV30; break;
|
||||||
case 4: st->codec->codec_id = CODEC_ID_RV40; break;
|
case 4: st->codec->codec_id = CODEC_ID_RV40; break;
|
||||||
default:
|
default:
|
||||||
av_log(st->codec, AV_LOG_ERROR, "extra:%02X %02X %02X %02X %02X\n", ((uint8_t*)st->codec->extradata)[0], ((uint8_t*)st->codec->extradata)[1], ((uint8_t*)st->codec->extradata)[2], ((uint8_t*)st->codec->extradata)[3], ((uint8_t*)st->codec->extradata)[4]);
|
av_log(st->codec, AV_LOG_ERROR, "extra:%02X %02X %02X %02X %02X\n", st->codec->extradata[0], st->codec->extradata[1], st->codec->extradata[2], st->codec->extradata[3], st->codec->extradata[4]);
|
||||||
goto fail1;
|
goto fail1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user