summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/mxpegdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mxpegdec.c b/libavcodec/mxpegdec.c
index 7c97a9340e..16e586c1e9 100644
--- a/libavcodec/mxpegdec.c
+++ b/libavcodec/mxpegdec.c
@@ -193,6 +193,9 @@ static int mxpeg_decode_frame(AVCodecContext *avctx,
int start_code;
int ret;
+ if (avctx->skip_frame == AVDISCARD_ALL)
+ return AVERROR_PATCHWELCOME;
+
buf_ptr = buf;
buf_end = buf + buf_size;
jpg->got_picture = 0;