comparison svq1.c @ 925:7fccaa0d699d libavcodec

AVVideoFrame -> AVFrame
author michaelni
date Mon, 09 Dec 2002 12:03:43 +0000
parents 3814e9115672
children a1866d06df1e
comparison
equal deleted inserted replaced
924:3814e9115672 925:7fccaa0d699d
1061 UINT8 *buf, int buf_size) 1061 UINT8 *buf, int buf_size)
1062 { 1062 {
1063 MpegEncContext *s=avctx->priv_data; 1063 MpegEncContext *s=avctx->priv_data;
1064 uint8_t *current, *previous; 1064 uint8_t *current, *previous;
1065 int result, i, x, y, width, height; 1065 int result, i, x, y, width, height;
1066 AVVideoFrame *pict = data; 1066 AVFrame *pict = data;
1067 1067
1068 /* initialize bit buffer */ 1068 /* initialize bit buffer */
1069 init_get_bits(&s->gb,buf,buf_size); 1069 init_get_bits(&s->gb,buf,buf_size);
1070 1070
1071 /* decode frame header */ 1071 /* decode frame header */
1159 current += 16*linesize; 1159 current += 16*linesize;
1160 } 1160 }
1161 } 1161 }
1162 } 1162 }
1163 1163
1164 *pict = *(AVVideoFrame*)&s->current_picture; 1164 *pict = *(AVFrame*)&s->current_picture;
1165 1165
1166 1166
1167 MPV_frame_end(s); 1167 MPV_frame_end(s);
1168 1168
1169 *data_size=sizeof(AVVideoFrame); 1169 *data_size=sizeof(AVFrame);
1170 return buf_size; 1170 return buf_size;
1171 } 1171 }
1172 1172
1173 static int svq1_decode_init(AVCodecContext *avctx) 1173 static int svq1_decode_init(AVCodecContext *avctx)
1174 { 1174 {