gxf: Factorize code in get_sindex()

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/26/head
Reuben Martin 12 years ago committed by Michael Niedermayer
parent 0de9d3dd1c
commit 7ebf3ab959
  1. 5
      libavformat/gxf.c

@ -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…
Cancel
Save