In that case, there's an offset of 4 between the CTB line and the raster line. --- libavcodec/hevc_filter.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c index abf8b24..8b5ae6b 100644 --- a/libavcodec/hevc_filter.c +++ b/libavcodec/hevc_filter.c @@ -716,8 +716,12 @@ void ff_hevc_hls_filter(HEVCContext *s, int x, int y, int ctb_size) if (s->threads_type & FF_THREAD_FRAME) ff_thread_report_progress3_raster_end(&s->ref->tf, y+ctb_size); } - } else if (s->threads_type & FF_THREAD_FRAME && x_end) - ff_thread_report_progress3_raster_end(&s->ref->tf, y + ctb_size - 4); + } else if (s->threads_type & FF_THREAD_FRAME) { + if (x_end) + ff_thread_report_progress3_raster_end(&s->ref->tf, y + ctb_size - 4); + else + ff_thread_report_progress3_increment(&s->ref->tf, x + 4, y - 4, ctb_size); + } } void ff_hevc_hls_filters(HEVCContext *s, int x_ctb, int y_ctb, int ctb_size) -- 1.9.2.msysgit.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel