avformat/rpl: check av_get_packet() for failure