[FFmpeg-cvslog] tiffenc: merge common code

Paul B Mahol git at videolan.org
Fri Jul 6 21:57:27 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul  6 02:00:32 2012 +0000| [1806858fdd92d47e65ffec8bfbf06076f5b15268] | committer: Paul B Mahol

tiffenc: merge common code

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1806858fdd92d47e65ffec8bfbf06076f5b15268
---

 libavcodec/tiffenc.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index fa55aa6..30cd321 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list