diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 19:50:20 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-28 02:49:50 +0400 |
commit | 2f77894cccec8dcba47b5217da9b51273c24fbbb (patch) | |
tree | f9c524499dfbbe772bd52b0a57ad5b68e1f2b852 /libavcodec/hevc_filter.c | |
parent | c1882e801d6492565951c19ba520c8a2bd8735e8 (diff) |
hevc: better mt implementation
Signed-off-by: Mickaƫl Raulet <mraulet@insa-rennes.fr>
(cherry picked from commit 93afb8c519deca85b3c97804927de5b016dd32d1)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_filter.c')
-rw-r--r-- | libavcodec/hevc_filter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c index 497c089213..0a6d7c9fb5 100644 --- a/libavcodec/hevc_filter.c +++ b/libavcodec/hevc_filter.c @@ -683,8 +683,11 @@ void ff_hevc_hls_filters(HEVCContext *s, int x_ctb, int y_ctb, int ctb_size) { if (y_ctb && x_ctb) ff_hevc_hls_filter(s, x_ctb - ctb_size, y_ctb - ctb_size); - if (y_ctb && x_ctb >= s->sps->width - ctb_size) + if (y_ctb && x_ctb >= s->sps->width - ctb_size) { ff_hevc_hls_filter(s, x_ctb, y_ctb - ctb_size); + if (s->threads_type == FF_THREAD_FRAME ) + ff_thread_report_progress(&s->ref->tf, y_ctb - ctb_size, 0); + } if (x_ctb && y_ctb >= s->sps->height - ctb_size) ff_hevc_hls_filter(s, x_ctb - ctb_size, y_ctb); } |