comparison rv10.c @ 344:9f6071a87e17 libavcodec

fixed msmpeg4 infinite loop if buggy stream rewrote quantizer fixed bias (+10% compression/quality for h263 like codecs) qscale=1 support mpeg1 intra frames looks far less blocky added codec_id field
author michaelni
date Sat, 27 Apr 2002 12:30:26 +0000
parents 35c1141e23d9
children 6ebbecc10063
comparison
equal deleted inserted replaced
343:9211a0c9466a 344:9f6071a87e17
338 { 338 {
339 MpegEncContext *s = avctx->priv_data; 339 MpegEncContext *s = avctx->priv_data;
340 int i; 340 int i;
341 static int done; 341 static int done;
342 342
343 // s->avctx= avctx;
343 s->out_format = FMT_H263; 344 s->out_format = FMT_H263;
344 345
345 s->width = avctx->width; 346 s->width = avctx->width;
346 s->height = avctx->height; 347 s->height = avctx->height;
347 348
348 s->h263_rv10 = 1; 349 s->h263_rv10 = 1;
349 s->rv10_version = avctx->sub_id; 350 s->rv10_version = avctx->sub_id;
350 351
351 if (MPV_common_init(s) < 0) 352 if (MPV_common_init(s) < 0)
352 return -1; 353 return -1;
353
354 /* XXX: suppress this matrix init, only needed because using mpeg1
355 dequantize in mmx case */
356 for(i=0;i<64;i++)
357 s->non_intra_matrix[i] = default_non_intra_matrix[i];
358 354
359 h263_decode_init_vlc(s); 355 h263_decode_init_vlc(s);
360 356
361 /* init rv vlc */ 357 /* init rv vlc */
362 if (!done) { 358 if (!done) {