Commit 9612f0ec authored by glantau's avatar glantau

added forgotten emms() - fix various segmentation faults when using mjpeg


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@57 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1ec66d11
...@@ -796,6 +796,7 @@ static int mjpeg_decode_sos(MJpegDecodeContext *s, ...@@ -796,6 +796,7 @@ static int mjpeg_decode_sos(MJpegDecodeContext *s,
} }
} }
} }
emms_c();
return 0; return 0;
} }
...@@ -874,6 +875,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -874,6 +875,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
start_code = s->start_code; start_code = s->start_code;
s->buf_ptr = s->buffer; s->buf_ptr = s->buffer;
s->start_code = code; s->start_code = code;
dprintf("marker=%x\n", start_code);
switch(start_code) { switch(start_code) {
case SOI: case SOI:
/* nothing to do on SOI */ /* nothing to do on SOI */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment