Mercurial > libavcodec.hg
comparison libschroedingerenc.c @ 8790:1045a26cb90d libavcodec
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
| author | diego |
|---|---|
| date | Tue, 10 Feb 2009 14:27:16 +0000 |
| parents | e9d9d946f213 |
| children | fdb318d12314 |
comparison
equal
deleted
inserted
replaced
| 8789:b2a991a936e1 | 8790:1045a26cb90d |
|---|---|
| 204 /* FIXME: Signal range hardcoded to 8-bit data until both libschroedinger | 204 /* FIXME: Signal range hardcoded to 8-bit data until both libschroedinger |
| 205 * and libdirac support other bit-depth data. */ | 205 * and libdirac support other bit-depth data. */ |
| 206 schro_video_format_set_std_signal_range(p_schro_params->format, | 206 schro_video_format_set_std_signal_range(p_schro_params->format, |
| 207 SCHRO_SIGNAL_RANGE_8BIT_VIDEO); | 207 SCHRO_SIGNAL_RANGE_8BIT_VIDEO); |
| 208 | 208 |
| 209 | |
| 210 /* Hardcode motion vector precision to quarter pixel. */ | |
| 211 schro_encoder_setting_set_double (p_schro_params->encoder, | |
| 212 "mv_precision", 2); | |
| 213 | |
| 214 /* Set the encoder format. */ | 209 /* Set the encoder format. */ |
| 215 schro_encoder_set_video_format(p_schro_params->encoder, | 210 schro_encoder_set_video_format(p_schro_params->encoder, |
| 216 p_schro_params->format); | 211 p_schro_params->format); |
| 217 | 212 |
| 218 /* Set the debug level. */ | 213 /* Set the debug level. */ |
