avcodec/osq: Add note about update_stats() count

It seems this is basically unused and unfinished code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2025-06-17 02:28:08 +02:00
parent c909ef31be
commit b587afcb65

View File

@ -150,6 +150,8 @@ static void update_stats(OSQChannel *cb, int val)
cb->history[cb->pos] = FFABS((int64_t)val);
cb->pos++;
cb->count++;
//NOTE for this to make sense count would need to be limited to FF_ARRAY_ELEMS(cb->history)
//Otherwise the average computation later makes no sense
if (cb->pos >= FF_ARRAY_ELEMS(cb->history))
cb->pos = 0;
}