avcodec/msrle: Check that the input is large enough to contain a end of picture code