Commit 46b2dec0 authored by Christophe Massiot's avatar Christophe Massiot

Fixed typos.

parent 62ffd1a0
...@@ -518,33 +518,33 @@ static void QTScaleMatrix( vout_thread_t *p_vout ) ...@@ -518,33 +518,33 @@ static void QTScaleMatrix( vout_thread_t *p_vout )
GetPortBounds( p_vout->p_sys->p_qdport, &s_rect ); GetPortBounds( p_vout->p_sys->p_qdport, &s_rect );
if( (s_rect.bottom - s_rect.top) * p_vout->render.i_aspect if( (s_rect.bottom - s_rect.top) * p_vout->output.i_aspect
< (s_rect.right - s_rect.left) * VOUT_ASPECT_FACTOR ) < (s_rect.right - s_rect.left) * VOUT_ASPECT_FACTOR )
{ {
factor_x = FixDiv( Long2Fix( (s_rect.bottom - s_rect.top) factor_x = FixDiv( Long2Fix( (s_rect.bottom - s_rect.top)
* p_vout->render.i_aspect / VOUT_ASPECT_FACTOR ), * p_vout->output.i_aspect / VOUT_ASPECT_FACTOR ),
Long2Fix( p_vout->render.i_width ) ); Long2Fix( p_vout->output.i_width ) );
factor_y = FixDiv( Long2Fix( s_rect.bottom - s_rect.top ), factor_y = FixDiv( Long2Fix( s_rect.bottom - s_rect.top ),
Long2Fix( p_vout->render.i_height ) ); Long2Fix( p_vout->output.i_height ) );
#if 0 #if 0
p_vout->p_sys->display_rect.top = 0; p_vout->p_sys->display_rect.top = 0;
p_vout->p_sys->display_rect.bottom = s_rect.bottom - s_rect.top; p_vout->p_sys->display_rect.bottom = s_rect.bottom - s_rect.top;
p_vout->p_sys->display_rect.left = 12; p_vout->p_sys->display_rect.left = 12;
p_vout->p_sys->display_rect.right = 12 + (s_rect.bottom - s_rect.top) p_vout->p_sys->display_rect.right = 12 + (s_rect.bottom - s_rect.top)
* p_vout->render.i_aspect / VOUT_ASPECT_FACTOR; * p_vout->output.i_aspect / VOUT_ASPECT_FACTOR;
#endif #endif
} }
else else
{ {
factor_x = FixDiv( Long2Fix( s_rect.right - s_rect.left ), factor_x = FixDiv( Long2Fix( s_rect.right - s_rect.left ),
Long2Fix( p_vout->render.i_width ) ); Long2Fix( p_vout->output.i_width ) );
factor_y = FixDiv( Long2Fix( (s_rect.right - s_rect.left) factor_y = FixDiv( Long2Fix( (s_rect.right - s_rect.left)
* VOUT_ASPECT_FACTOR / p_vout->render.i_aspect ), * VOUT_ASPECT_FACTOR / p_vout->output.i_aspect ),
Long2Fix( p_vout->render.i_height ) ); Long2Fix( p_vout->output.i_height ) );
#if 0 #if 0
p_vout->p_sys->display_rect.top = 12; p_vout->p_sys->display_rect.top = 12;
p_vout->p_sys->display_rect.bottom = 12 + (s_rect.right - s_rect.left) p_vout->p_sys->display_rect.bottom = 12 + (s_rect.right - s_rect.left)
* VOUT_ASPECT_FACTOR / p_vout->render.i_aspect; * VOUT_ASPECT_FACTOR / p_vout->output.i_aspect;
p_vout->p_sys->display_rect.left = 0; p_vout->p_sys->display_rect.left = 0;
p_vout->p_sys->display_rect.right = s_rect.right - s_rect.left; p_vout->p_sys->display_rect.right = s_rect.right - s_rect.left;
#endif #endif
...@@ -581,9 +581,7 @@ static int QTCreateSequence( vout_thread_t *p_vout ) ...@@ -581,9 +581,7 @@ static int QTCreateSequence( vout_thread_t *p_vout )
p_descr->spatialQuality = codecLosslessQuality; p_descr->spatialQuality = codecLosslessQuality;
p_descr->frameCount = 1; p_descr->frameCount = 1;
p_descr->clutID = -1; p_descr->clutID = -1;
p_descr->dataSize = 0;
p_descr->dataSize = p_vout->output.i_width *
p_vout->output.i_height * 3 / 2;
p_descr->depth = 12; p_descr->depth = 12;
HUnlock( (Handle)p_vout->p_sys->h_img_descr ); HUnlock( (Handle)p_vout->p_sys->h_img_descr );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment