uses FF_ARRAY_ELEMS() where appropriate
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -1091,7 +1091,7 @@ static void print_report(AVFormatContext **output_files,
|
||||
if(qp_hist){
|
||||
int j;
|
||||
int qp= lrintf(enc->coded_frame->quality/(float)FF_QP2LAMBDA);
|
||||
if(qp>=0 && qp<sizeof(qp_histogram)/sizeof(int))
|
||||
if(qp>=0 && qp<FF_ARRAY_ELEMS(qp_histogram))
|
||||
qp_histogram[qp]++;
|
||||
for(j=0; j<32; j++)
|
||||
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%X", (int)lrintf(log(qp_histogram[j]+1)/log(2)));
|
||||
|
||||
Reference in New Issue
Block a user