gxf: Factorize code in get_sindex()
authorReuben Martin <reuben.m@gmail.com>
Mon, 17 Jun 2013 20:22:46 +0000 (15:22 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 27 Jun 2013 15:18:59 +0000 (17:18 +0200)
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/gxf.c

index 5a36854..f801d24 100644 (file)
@@ -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;