From 9fc88d7e2025e5df0bced8a175978408a1d9eb9a Mon Sep 17 00:00:00 2001 From: Anuradha Suraparaju Date: Tue, 10 Feb 2009 14:27:16 +0000 Subject: Fix crash when encoding using libschroedinger. Currently only pixel and half-pixel motion vector precisions are supported in libschroedinger. Setting the mv_precision field to 2 (i.e. quarter pixel) causes a crash in the libschroedinger encoder calls. By not setting this parameter, we fall back to the default value used in libschroedinger. patch by Anuradha Suraparaju, anuradha rd.bbc.co uk Originally committed as revision 17132 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libschroedingerenc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libavcodec/libschroedingerenc.c') diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c index 89d0ba9322..965096ab01 100644 --- a/libavcodec/libschroedingerenc.c +++ b/libavcodec/libschroedingerenc.c @@ -206,11 +206,6 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext) schro_video_format_set_std_signal_range(p_schro_params->format, SCHRO_SIGNAL_RANGE_8BIT_VIDEO); - - /* Hardcode motion vector precision to quarter pixel. */ - schro_encoder_setting_set_double (p_schro_params->encoder, - "mv_precision", 2); - /* Set the encoder format. */ schro_encoder_set_video_format(p_schro_params->encoder, p_schro_params->format); -- cgit v1.2.3