[FFmpeg-cvslog] ljpeg: Add predictor=0 support.

Michael Niedermayer git at videolan.org
Sat Jan 7 00:19:52 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan  6 21:28:26 2012 +0100| [5152beeba81021e6b0988615efe398fdd48d8c23] | committer: Michael Niedermayer

ljpeg: Add predictor=0 support.

Fixed first half of ticket889

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/mjpeg.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/mjpeg.h b/libavcodec/mjpeg.h
index 3c88471..ba11733 100644
--- a/libavcodec/mjpeg.h
+++ b/libavcodec/mjpeg.h
@@ -127,6 +127,7 @@ static inline void put_marker(PutBitContext *p, int code)
 
 #define PREDICT(ret, topleft, top, left, predictor)\
     switch(predictor){\
+        case 0: ret= 0; break;\
         case 1: ret= left; break;\
         case 2: ret= top; break;\
         case 3: ret= topleft; break;\



More information about the ffmpeg-cvslog mailing list