Skip to content

Commit

Permalink
fate-bprint: try to workaround platform specific value.
Browse files Browse the repository at this point in the history
this should fix some fate failures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Jun 8, 2012
1 parent d5d30d5 commit 5b51efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libavutil/bprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ int main(void)

av_bprint_init(&b, 0, 1);
bprint_pascal(&b, 25);
printf("Long text in automatic buffer: %zu/%u\n", strlen(b.str), b.len);
printf("Long text in automatic buffer: %zu/%u\n", strlen(b.str)/8*8, b.len);
/* Note that the size of the automatic buffer is arch-dependant. */

av_bprint_init(&b, 0, 0);
Expand Down
2 changes: 1 addition & 1 deletion tests/ref/fate/bprint
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Short text in unlimited buffer: 174/174
Long text in unlimited buffer: 2834/2834
Long text in limited buffer: 2047/2834
Short text in automatic buffer: 174/174
Long text in automatic buffer: 1003/2834
Long text in automatic buffer: 1000/2834
Long text count only buffer: 0/2834
Long text count only buffer: 255/2834

0 comments on commit 5b51efd

Please sign in to comment.