avcodec/rawdec: Check the return code of avpicture_get_size()