Changeset 2455bc6


Ignore:
Timestamp:
03/23/16 18:04:45 (5 months ago)
Author:
John Stebbins <jstebbins.hb@…>
Branches:
master
Children:
758923ed
Parents:
b96c24bc
Message:

hb: cosmetics, removing trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libhb/hb.c

    rb29eeae r2455bc6  
    77   For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
    88 */
    9  
     9
    1010#include "hb.h"
    1111#include "opencl.h"
     
    3131{
    3232    int            id;
    33    
     33
    3434    /* This thread's only purpose is to check other threads'
    3535       states */
     
    6060    int            scanCount;
    6161    volatile int   scan_die;
    62    
     62
    6363    /* Stash of persistent data between jobs, for stuff
    6464       like correcting frame count and framerate estimates
     
    141141    int ret;
    142142
    143     if ((thread_count == HB_FFMPEG_THREADS_AUTO || thread_count > 0) && 
     143    if ((thread_count == HB_FFMPEG_THREADS_AUTO || thread_count > 0) &&
    144144        (codec->type == AVMEDIA_TYPE_VIDEO))
    145145    {
     
    255255        av_opt_set_int(ctx, "sws_flags", flags, 0);
    256256
    257         sws_setColorspaceDetails( ctx, 
     257        sws_setColorspaceDetails( ctx,
    258258                      sws_getCoefficients( SWS_CS_DEFAULT ), // src colorspace
    259259                      srcRange, // src range 0 = MPG, 1 = JPG
     
    268268            sws_freeContext(ctx);
    269269            ctx = NULL;
    270         } 
     270        }
    271271    }
    272272    return ctx;
     
    635635
    636636    hb_log( "hb_scan: path=%s, title_index=%d", path, title_index );
    637     h->scan_thread = hb_scan_init( h, &h->scan_die, path, title_index, 
    638                                    &h->title_set, preview_count, 
     637    h->scan_thread = hb_scan_init( h, &h->scan_die, path, title_index,
     638                                   &h->title_set, preview_count,
    639639                                   store_previews, min_duration );
    640640}
     
    861861    }
    862862
    863     /* One pas for Y, one pass for Cb, one pass for Cr */   
     863    /* One pas for Y, one pass for Cb, one pass for Cr */
    864864    for( k = 0; k < 3; k++ )
    865865    {
     
    908908    /* HandBrake is all yuv420, so weight the average percentage of all 3 planes accordingly.*/
    909909    int average_cc = ( 2 * cc[0] + ( cc[1] / 2 ) + ( cc[2] / 2 ) ) / 3;
    910    
     910
    911911    /* Now see if that average percentage of combed pixels surpasses the threshold percentage given by the user.*/
    912912    if( average_cc > threshold )
     
    14491449         */
    14501450        job_copy->list_subtitle = hb_list_init();
    1451    
     1451
    14521452        for( i = 0; i < hb_list_count( job->title->list_subtitle ); i++ )
    14531453        {
     
    17101710
    17111711    h->die = 1;
    1712    
     1712
    17131713    hb_thread_close( &h->main_thread );
    17141714
     
    17881788    hb_register(&hb_encqsv);
    17891789#endif
    1790    
     1790
    17911791    hb_x264_global_init();
    17921792    hb_common_global_init();
     
    18111811    DIR * dir;
    18121812    struct dirent * entry;
    1813    
     1813
    18141814    hb_presets_free();
    18151815
     
    19401940#endif
    19411941    FILE * log_f = fdopen(pfd[0], "rb");
    1942    
     1942
    19431943    char line_buffer[500];
    19441944    while(fgets(line_buffer, 500, log_f) != NULL)
Note: See TracChangeset for help on using the changeset viewer.