summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerenc.c
diff options
context:
space:
mode:
authorAnuradha Suraparaju <anuradha@rd.bbc.co.uk>2009-02-10 14:27:16 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-10 14:27:16 +0000
commit9fc88d7e2025e5df0bced8a175978408a1d9eb9a (patch)
treeb8d4e322f16c5d736ba3df86694c4b169581065e /libavcodec/libschroedingerenc.c
parentf418b86151921355e6843a126154d56ce86256ae (diff)
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
Diffstat (limited to 'libavcodec/libschroedingerenc.c')
-rw-r--r--libavcodec/libschroedingerenc.c5
1 files changed, 0 insertions, 5 deletions
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);