mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
Set st->need_parsing = 2 for MPEG-content.
Originally committed as revision 7158 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3c1418175d
commit
9ed0023447
@ -130,11 +130,13 @@ static int get_sindex(AVFormatContext *s, int id, int format) {
|
|||||||
case 20:
|
case 20:
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
|
st->codec->codec_id = CODEC_ID_MPEG2VIDEO;
|
||||||
|
st->need_parsing = 2; // get keyframe flag etc.
|
||||||
break;
|
break;
|
||||||
case 22:
|
case 22:
|
||||||
case 23:
|
case 23:
|
||||||
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
st->codec->codec_type = CODEC_TYPE_VIDEO;
|
||||||
st->codec->codec_id = CODEC_ID_MPEG1VIDEO;
|
st->codec->codec_id = CODEC_ID_MPEG1VIDEO;
|
||||||
|
st->need_parsing = 2; // get keyframe flag etc.
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
st->codec->codec_type = CODEC_TYPE_AUDIO;
|
st->codec->codec_type = CODEC_TYPE_AUDIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user