tiffenc: merge common code
authorPaul B Mahol <onemda@gmail.com>
Fri, 6 Jul 2012 02:00:32 +0000 (02:00 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 6 Jul 2012 19:39:32 +0000 (19:39 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/tiffenc.c

index fa55aa6..30cd321 100644 (file)
@@ -251,14 +251,8 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
 
     switch (avctx->pix_fmt) {
     case PIX_FMT_RGBA64LE:
-        s->photometric_interpretation = 2;
-        break;
     case PIX_FMT_RGB48LE:
-        s->photometric_interpretation = 2;
-        break;
     case PIX_FMT_RGBA:
-        s->photometric_interpretation = 2;
-        break;
     case PIX_FMT_RGB24:
         s->photometric_interpretation = 2;
         break;