X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fdecdca.c;h=4fe06613503ac4d98357295bc4881b9e75c572ca;hb=033e32de9c380f54c7d1362a3979da205ebc3a29;hp=ec625c5bd6726fe049a0d62a7d0902046fd9922e;hpb=2d64d56e43bddb730bb968e4c7394564064c989c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/decdca.c b/libhb/decdca.c index ec625c5b..4fe06613 100644 --- a/libhb/decdca.c +++ b/libhb/decdca.c @@ -156,6 +156,7 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) hb_audio_t * audio = w->audio; int i, j, k; int64_t pts, pos; + uint64_t upts, upos; int num_blocks; /* Get a frame header if don't have one yet */ @@ -198,7 +199,10 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) } /* Get the whole frame */ - hb_list_getbytes( pv->list, pv->frame, pv->size, &pts, &pos ); + hb_list_getbytes( pv->list, pv->frame, pv->size, &upts, &upos ); + pts = (int64_t)upts; + pos = (int64_t)upos; + if ( pts != pv->last_buf_pts ) { pv->last_buf_pts = pts;