comparison mjpegbdec.c @ 6271:fd69759904c7 libavcodec

const
author michael
date Fri, 01 Feb 2008 15:30:29 +0000
parents 51b4b51fa622
children 22cca5d3173a
comparison
equal deleted inserted replaced
6270:d2af52426ef7 6271:fd69759904c7
29 #include "mjpegdec.h" 29 #include "mjpegdec.h"
30 30
31 31
32 static int mjpegb_decode_frame(AVCodecContext *avctx, 32 static int mjpegb_decode_frame(AVCodecContext *avctx,
33 void *data, int *data_size, 33 void *data, int *data_size,
34 uint8_t *buf, int buf_size) 34 const uint8_t *buf, int buf_size)
35 { 35 {
36 MJpegDecodeContext *s = avctx->priv_data; 36 MJpegDecodeContext *s = avctx->priv_data;
37 uint8_t *buf_end, *buf_ptr; 37 const uint8_t *buf_end, *buf_ptr;
38 AVFrame *picture = data; 38 AVFrame *picture = data;
39 GetBitContext hgb; /* for the header */ 39 GetBitContext hgb; /* for the header */
40 uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs; 40 uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs;
41 uint32_t field_size, sod_offs; 41 uint32_t field_size, sod_offs;
42 42