avcodec/huffyuvenc: fix end pointer for stats_out