comparison rv10.c @ 1070:6da5ae9ee199 libavcodec

more #ifdef CONFIG_ENCODERS patch by (Wolfgang Hesseler <qv at multimediaware dot com>) with modifications by me (s/WOLFGANG/CONFIG_ENCODERS/ and some other fixes)
author michaelni
date Sun, 16 Feb 2003 23:05:38 +0000
parents b32afefe7d33
children 1e39f273ecd6
comparison
equal deleted inserted replaced
1069:8528d0b9e508 1070:6da5ae9ee199
218 } 218 }
219 } 219 }
220 return -code; 220 return -code;
221 } 221 }
222 222
223 #ifdef CONFIG_ENCODERS
224
223 /* write RV 1.0 compatible frame header */ 225 /* write RV 1.0 compatible frame header */
224 void rv10_encode_picture_header(MpegEncContext *s, int picture_number) 226 void rv10_encode_picture_header(MpegEncContext *s, int picture_number)
225 { 227 {
226 int full_frame= 0; 228 int full_frame= 0;
227 229
259 } else { 261 } else {
260 n1 = get_bits(gb, 16); 262 n1 = get_bits(gb, 16);
261 return (n << 16) | n1; 263 return (n << 16) | n1;
262 } 264 }
263 } 265 }
266
267 #endif //CONFIG_ENCODERS
264 268
265 /* read RV 1.0 compatible frame header */ 269 /* read RV 1.0 compatible frame header */
266 static int rv10_decode_picture_header(MpegEncContext *s) 270 static int rv10_decode_picture_header(MpegEncContext *s)
267 { 271 {
268 int mb_count, pb_frame, marker, full_frame, unk; 272 int mb_count, pb_frame, marker, full_frame, unk;
328 } 332 }
329 333
330 static int rv10_decode_init(AVCodecContext *avctx) 334 static int rv10_decode_init(AVCodecContext *avctx)
331 { 335 {
332 MpegEncContext *s = avctx->priv_data; 336 MpegEncContext *s = avctx->priv_data;
333 static int done; 337 static int done=0;
334 338
335 s->avctx= avctx; 339 s->avctx= avctx;
336 s->out_format = FMT_H263; 340 s->out_format = FMT_H263;
337 341
338 s->width = avctx->width; 342 s->width = avctx->width;