mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-29 20:36:47 +08:00
added forgotten emms() - fix various segmentation faults when using mjpeg
Originally committed as revision 57 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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,
|
|||||||
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 */
|
||||||
|
Reference in New Issue
Block a user