From 7ebf3ab959a02b67c9d73c8e3f74325913564140 Mon Sep 17 00:00:00 2001 From: Reuben Martin Date: Mon, 17 Jun 2013 15:22:46 -0500 Subject: [PATCH] gxf: Factorize code in get_sindex() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Reimar Döffinger Signed-off-by: Michael Niedermayer --- libavformat/gxf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavformat/gxf.c b/libavformat/gxf.c index 5a36854030..f801d246b6 100644 --- a/libavformat/gxf.c +++ b/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;