[FFmpeg-cvslog] tiff: Prefer enum TiffCompr over int for TiffContext.compr.

Stefano Sabatini git at videolan.org
Fri May 13 04:46:00 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Mon May  9 21:05:42 2011 +0200| [8102d886be012dc7a519da23b3278d36ae860f6d] | committer: Diego Biurrun

tiff: Prefer enum TiffCompr over int for TiffContext.compr.

This is safer and helps debugging.

Signed-off-by: Diego Biurrun <diego at biurrun.de>

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

 libavcodec/tiff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 1ec78a7..0cd1cdd 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -42,7 +42,7 @@ typedef struct TiffContext {
     int width, height;
     unsigned int bpp;
     int le;
-    int compr;
+    enum TiffCompr compr;
     int invert;
     int fax_opts;
     int predictor;



More information about the ffmpeg-cvslog mailing list