mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
gxf: Factorize code in get_sindex()
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0de9d3dd1c
commit
7ebf3ab959
@ -116,11 +116,8 @@ static int get_sindex(AVFormatContext *s, int id, int format) {
|
||||
st->codec->codec_id = AV_CODEC_ID_MJPEG;
|
||||
break;
|
||||
case 13:
|
||||
case 15:
|
||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
st->codec->codec_id = AV_CODEC_ID_DVVIDEO;
|
||||
break;
|
||||
case 14:
|
||||
case 15:
|
||||
case 16:
|
||||
case 25:
|
||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
|
Loading…
Reference in New Issue
Block a user