X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fbatch.c;h=28c40ca48c1eb8f277edbd2d8fd06a244cf46932;hb=32219d93ec8fcf0db6f7ca5d6045419882563951;hp=f627df5556e5499399ad1a0ba81ef39556292628;hpb=7dc534bc87accdf2d58a0a6e8e209fdf9c46f41a;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/batch.c b/libhb/batch.c index f627df55..28c40ca4 100644 --- a/libhb/batch.c +++ b/libhb/batch.c @@ -87,10 +87,10 @@ hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t ) char * filename; hb_stream_t * stream; - if ( t < 1 ) + if ( t < 0 ) return NULL; - filename = hb_list_item( d->list_file, t-1 ); + filename = hb_list_item( d->list_file, t ); if ( filename == NULL ) return NULL; @@ -99,7 +99,6 @@ hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t ) return NULL; title = hb_stream_title_scan( stream ); - title->index = t; hb_stream_close( &stream ); return title;