mlt_filter this = mlt_frame_pop_service( frame );
// Get the mirror type
- mlt_properties properties = mlt_filter_properties( this );
+ mlt_properties properties = MLT_FILTER_PROPERTIES( this );
// Get the properties
char *mirror = mlt_properties_get( properties, "mirror" );
q = p + *width * 2;
if ( !reverse )
{
- while ( p != q )
+ while ( p < q )
{
*p ++ = *( q - 2 );
*p ++ = *( q - 3 );
}
else
{
- while ( p != q )
+ while ( p < q )
{
*( q - 2 ) = *p ++;
*( q - 3 ) = *p ++;
for ( i = 0; i < hh; i ++ )
{
p = ( uint16_t * )*image + i * *width;
- q = end - i * *width;
+ q = end - ( i + 1 ) * *width;
j = *width;
if ( !reverse )
{
{
p = ( uint8_t * )*image + i * *width * 2;
q = p + *width * 2;
- while ( p != q )
+ while ( p < q )
{
t[ 0 ] = p[ 0 ];
t[ 1 ] = p[ 1 ];
for ( i = 0; i < hh; i ++ )
{
p = ( uint16_t * )*image + i * *width;
- q = end - i * *width;
+ q = end - ( i + 1 ) * *width;
j = *width;
while ( j -- )
{
if ( this != NULL )
{
// Get the properties
- mlt_properties properties = mlt_filter_properties( this );
+ mlt_properties properties = MLT_FILTER_PROPERTIES( this );
// Set the default mirror type
mlt_properties_set_or_default( properties, "mirror", arg, "horizontal" );