tty: return av_get_packet() error codes instead of converting them to EIO