diff options
author | Jean Delvare <[email protected]> | 2013-07-05 10:23:18 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2013-07-05 13:52:59 +0200 |
commit | 6fc8c4cc0ef643b8d6b87b0cf20ca8792c9b2dbe (patch) | |
tree | 3fb0fc724a73c27b3d59c4a8a7e98e8efd803812 /libavformat/tcp.c | |
parent | c6c2231227c1d9031de43496dacdbcb309829b4d (diff) |
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: Jean Delvare <[email protected]>
Reviewed-by; Stefano Sabatini <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/tcp.c')
0 files changed, 0 insertions, 0 deletions