Skip to content
Snippets Groups Projects
Commit 6fc8c4cc authored by Jean Delvare's avatar Jean Delvare Committed by Michael Niedermayer
Browse files

lavfi/delogo: don't recompute the same difference again and again


The top left hand corner pixel coordinates are already stored in
logo_x1 and logo_y1 so don't recompute each of them 6 times for every
iteration.

This is a simple code optimization, result is obviously the same. The
performance gain is small (about 2% in my tests) but still good to
have, and the new code is clearer.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Reviewed-by; Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent c6c22312
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment