tiff: resolve conflicts

TESTME: some particular attention is needed on metadata
lavc/vima: convert to refcounted frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>