comparison dv.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents f4859c13426b
children 6e160e75eb9c
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
1029 #ifdef CONFIG_DECODERS 1029 #ifdef CONFIG_DECODERS
1030 /* NOTE: exactly one frame must be given (120000 bytes for NTSC, 1030 /* NOTE: exactly one frame must be given (120000 bytes for NTSC,
1031 144000 bytes for PAL - or twice those for 50Mbps) */ 1031 144000 bytes for PAL - or twice those for 50Mbps) */
1032 static int dvvideo_decode_frame(AVCodecContext *avctx, 1032 static int dvvideo_decode_frame(AVCodecContext *avctx,
1033 void *data, int *data_size, 1033 void *data, int *data_size,
1034 uint8_t *buf, int buf_size) 1034 const uint8_t *buf, int buf_size)
1035 { 1035 {
1036 DVVideoContext *s = avctx->priv_data; 1036 DVVideoContext *s = avctx->priv_data;
1037 1037
1038 s->sys = dv_frame_profile(buf); 1038 s->sys = dv_frame_profile(buf);
1039 if (!s->sys || buf_size < s->sys->frame_size) 1039 if (!s->sys || buf_size < s->sys->frame_size)