comparison sp5xdec.c @ 6221:b42a510e0939 libavcodec

const
author michael
date Fri, 01 Feb 2008 03:39:15 +0000
parents e0a872dd3ea1
children 493dc59d469a
comparison
equal deleted inserted replaced
6220:0ed0d9d578ad 6221:b42a510e0939
30 #include "sp5x.h" 30 #include "sp5x.h"
31 31
32 32
33 static int sp5x_decode_frame(AVCodecContext *avctx, 33 static int sp5x_decode_frame(AVCodecContext *avctx,
34 void *data, int *data_size, 34 void *data, int *data_size,
35 uint8_t *buf, int buf_size) 35 const uint8_t *buf, int buf_size)
36 { 36 {
37 #if 0 37 #if 0
38 MJpegDecodeContext *s = avctx->priv_data; 38 MJpegDecodeContext *s = avctx->priv_data;
39 #endif 39 #endif
40 const int qscale = 5; 40 const int qscale = 5;
41 uint8_t *buf_ptr, *buf_end, *recoded; 41 const uint8_t *buf_ptr, *buf_end;
42 uint8_t *recoded;
42 int i = 0, j = 0; 43 int i = 0, j = 0;
43 44
44 if (!avctx->width || !avctx->height) 45 if (!avctx->width || !avctx->height)
45 return -1; 46 return -1;
46 47