[FFmpeg-devel] [PATCH 4/5] tiffenc: merge common code

Paul B Mahol onemda at gmail.com
Fri Jul 6 04:05:29 CEST 2012


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/tiffenc.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index 9b14b75..1d3fbf9 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -248,14 +248,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;
-- 
1.7.7



More information about the ffmpeg-devel mailing list