avcodec/nuv: Check for minimum input size for uncomprssed and rtjpeg