Commit e39400c3 authored by Anton Khirnov's avatar Anton Khirnov

electronicarts: parse the framerate for cmv video.

parent 1bb3990b
......@@ -283,6 +283,20 @@ static int process_video_header_vp6(AVFormatContext *s)
return 1;
}
static int process_video_header_cmv(AVFormatContext *s)
{
EaDemuxContext *ea = s->priv_data;
int fps;
avio_skip(s->pb, 10);
fps = avio_rl16(s->pb);
if (fps)
ea->time_base = (AVRational){1, fps};
ea->video_codec = CODEC_ID_CMV;
return 0;
}
/*
* Process EA file header
* Returns 1 if the EA file is valid and successfully opened, 0 otherwise
......@@ -330,8 +344,7 @@ static int process_ea_header(AVFormatContext *s) {
break;
case MVIh_TAG :
ea->video_codec = CODEC_ID_CMV;
ea->time_base = (AVRational){0,0};
err = process_video_header_cmv(s);
break;
case kVGT_TAG:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment