|
|
@ -31,10 +31,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
static int mjpegb_decode_frame(AVCodecContext *avctx, |
|
|
|
static int mjpegb_decode_frame(AVCodecContext *avctx, |
|
|
|
void *data, int *data_size, |
|
|
|
void *data, int *data_size, |
|
|
|
uint8_t *buf, int buf_size) |
|
|
|
const uint8_t *buf, int buf_size) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MJpegDecodeContext *s = avctx->priv_data; |
|
|
|
MJpegDecodeContext *s = avctx->priv_data; |
|
|
|
uint8_t *buf_end, *buf_ptr; |
|
|
|
const uint8_t *buf_end, *buf_ptr; |
|
|
|
AVFrame *picture = data; |
|
|
|
AVFrame *picture = data; |
|
|
|
GetBitContext hgb; /* for the header */ |
|
|
|
GetBitContext hgb; /* for the header */ |
|
|
|
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; |
|
|
|
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; |
|
|
|