Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 33144:a2a32138597b
More precise decoder lag calculation for frame-multithreading.
author | reimar |
---|---|
date | Thu, 07 Apr 2011 21:48:16 +0000 |
parents | d2b6fbd11f20 |
children | 0c2838570652 |
comparison
equal
deleted
inserted
replaced
33143:1cad23803d94 | 33144:a2a32138597b |
---|---|
171 } | 171 } |
172 case VDCTRL_RESYNC_STREAM: | 172 case VDCTRL_RESYNC_STREAM: |
173 avcodec_flush_buffers(avctx); | 173 avcodec_flush_buffers(avctx); |
174 return CONTROL_TRUE; | 174 return CONTROL_TRUE; |
175 case VDCTRL_QUERY_UNSEEN_FRAMES: | 175 case VDCTRL_QUERY_UNSEEN_FRAMES: |
176 if (avctx->active_thread_type & FF_THREAD_FRAME) | |
177 return avctx->has_b_frames + avctx->thread_count + 10; | |
176 return avctx->has_b_frames + 10; | 178 return avctx->has_b_frames + 10; |
177 } | 179 } |
178 return CONTROL_UNKNOWN; | 180 return CONTROL_UNKNOWN; |
179 } | 181 } |
180 | 182 |