avcodec: Change get_pixels() to ptrdiff_t linesize

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>