*****************************************************************************/
#define ENC_QUALITY_TEXT N_("Encoding quality")
#define ENC_QUALITY_LONGTEXT N_( \
- "Enfore a quality between 1 (low) and 10 (high), instead " \
+ "Enforce a quality between 1 (low) and 10 (high), instead " \
"of specifying a particular bitrate. This will produce a VBR stream." )
vlc_module_begin();
if( theora_decode_header( &p_sys->ti, &p_sys->tc, &oggpacket ) < 0 )
{
- msg_Err( p_dec, "This bitstream does not contain Theora video data" );
+ msg_Err( p_dec, "this bitstream does not contain Theora video data" );
return VLC_EGENERIC;
}
if( p_sys->ti.aspect_denominator && p_sys->ti.aspect_numerator )
{
p_dec->fmt_out.video.i_aspect = ((int64_t)VOUT_ASPECT_FACTOR) *
- ( p_sys->ti.aspect_numerator * p_sys->ti.width ) /
- ( p_sys->ti.aspect_denominator * p_sys->ti.height );
+ ( p_sys->ti.aspect_numerator * p_dec->fmt_out.video.i_width ) /
+ ( p_sys->ti.aspect_denominator * p_dec->fmt_out.video.i_height );
}
else
{
i_src_yoffset /= 2;
}
- p_src += (i_src_yoffset * i_src_stride + i_src_yoffset);
+ p_src += (i_src_yoffset * i_src_stride + i_src_xoffset);
for( i_line = 0; i_line < p_pic->p[i_plane].i_visible_lines; i_line++ )
{
- p_dec->p_vlc->pf_memcpy( p_dst, p_src + i_src_xoffset,
+ p_dec->p_libvlc->pf_memcpy( p_dst, p_src + i_src_xoffset,
i_plane ? yuv->uv_width : yuv->y_width );
p_src += i_src_stride;
p_dst += i_dst_stride;