# HG changeset patch # User mswitch # Date 1018454588 0 # Node ID 92329b5f6ff340351851c605da0232a1111ceb00 # Parent 8ec12d5ba6c6fd4212258ff5af3aef705c21a5c9 Some minor changes to the avcodec code. (Michael, perhaps you could explain to me why avc_ctx->quality = 1 produces unwatachable output, and when using gop_size = 0 or 1 (intra) video will disappear after seeking) diff -r 8ec12d5ba6c6 -r 92329b5f6ff3 libvo/vo_dxr3.c --- a/libvo/vo_dxr3.c Wed Apr 10 12:43:26 2002 +0000 +++ b/libvo/vo_dxr3.c Wed Apr 10 16:03:08 2002 +0000 @@ -118,6 +118,7 @@ static AVPicture avc_picture; int avc_outbuf_size = 100000; extern int avcodec_inited; +extern int motion_estimation_method; #endif char *picture_data[] = { NULL, NULL, NULL }; @@ -401,16 +402,13 @@ avc_context->width = s_width; avc_context->height = s_height; ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); - if (ioval == EM8300_VIDEOMODE_NTSC) { - avc_context->gop_size = 18; - } else { - avc_context->gop_size = 15; - } + avc_context->gop_size = 7; avc_context->frame_rate = (int) (vo_fps * FRAME_RATE_BASE); - avc_context->bit_rate = 6e6; + avc_context->bit_rate = 0; avc_context->flags = CODEC_FLAG_QSCALE; avc_context->quality = 2; avc_context->pix_fmt = PIX_FMT_YUV420P; + motion_estimation_method = ME_EPZS; if (avcodec_open(avc_context, avc_codec) < 0) { printf("VO: [dxr3] Unable to open codec\n"); uninit();