X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fsync.c;h=36017801b7f34c86ebce9681aa9779e3436a37b9;hb=0884cb45aeeb60a46effe1d1056a61fe68300ea7;hp=1f6581edb2a2d9f4e9764de0e7003aa8717c2959;hpb=3e6ed473c1faa0e8612760081b8b334ea98be90a;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/sync.c b/libhb/sync.c index 1f6581ed..36017801 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -390,6 +390,9 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in, cur->start = sync->next_start; cur->stop = cur->start + 90000. / ((double)job->vrate / (double)job->vrate_base); + /* Make sure last frame is reflected in frame count */ + pv->common->count_frames++; + /* Push the frame to the renderer */ hb_fifo_push( job->fifo_sync, cur ); sync->cur = NULL; @@ -561,7 +564,9 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in, */ if( subtitle->source == CC608SUB || subtitle->source == CC708SUB || - subtitle->source == SRTSUB ) + subtitle->source == SRTSUB || + subtitle->source == UTF8SUB || + subtitle->source == TX3GSUB) { /* * Rewrite timestamps on subtitles that came from Closed Captions