summaryrefslogtreecommitdiff
path: root/libavcodec/mjpeg.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 21:28:26 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-07 00:11:43 +0100
commit5152beeba81021e6b0988615efe398fdd48d8c23 (patch)
treea34f79dcd7cb7e4691eaf2806297ad3bbf9ff851 /libavcodec/mjpeg.h
parent877f6eb5fbe0ef71aa410a399713cae76f4e4eef (diff)
downloadffmpeg-5152beeba81021e6b0988615efe398fdd48d8c23.tar.gz
ljpeg: Add predictor=0 support.
Fixed first half of ticket889 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpeg.h')
-rw-r--r--libavcodec/mjpeg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpeg.h b/libavcodec/mjpeg.h
index 3c88471bab..ba1173380c 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;\