ljpeg: Add predictor=0 support.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 20:28:26 +0000 (21:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 23:11:43 +0000 (00:11 +0100)
Fixed first half of ticket889

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpeg.h

index 3c88471..ba11733 100644 (file)
@@ -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;\