Skip to content

Commit

Permalink
AviSynth 16bit hack
Browse files Browse the repository at this point in the history
  • Loading branch information
SAPikachu authored and jeeb committed May 26, 2012
1 parent bd9310e commit fe45b49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions input/avs.c
Expand Up @@ -314,6 +314,14 @@ static int open_file( char *psz_filename, hnd_t *p_handle, video_info_t *info, c
info->csp = X264_CSP_NONE;
info->vfr = 0;

if( opt->bit_depth > 8 )
{
FAIL_IF_ERROR( info->width & 3, "avisynth 16bit hack requires that width is at least mod4\n" )
x264_cli_log( "avs", X264_LOG_INFO, "avisynth 16bit hack enabled\n" );
info->csp |= X264_CSP_HIGH_DEPTH;
info->width >>= 1;
}

*p_handle = h;
return 0;
}
Expand Down

0 comments on commit fe45b49

Please sign in to comment.