diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-08 12:14:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-08 12:16:31 +0200 |
commit | 5b51efdc3a263e4ab59d5d66e5e2ec3413304e33 (patch) | |
tree | a1a263469edd9b126584e816e06f2b5c7833c5cf | |
parent | d5d30d56ed7c0386c1a9fd5c3dc4b0949e025864 (diff) | |
download | ffmpeg-5b51efdc3a263e4ab59d5d66e5e2ec3413304e33.tar.gz |
fate-bprint: try to workaround platform specific value.
this should fix some fate failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/bprint.c | 2 | ||||
-rw-r--r-- | tests/ref/fate/bprint | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/bprint.c b/libavutil/bprint.c index 646f0aab5d..75344f7b72 100644 --- a/libavutil/bprint.c +++ b/libavutil/bprint.c @@ -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); diff --git a/tests/ref/fate/bprint b/tests/ref/fate/bprint index bc888dab4d..e027fa16be 100644 --- a/tests/ref/fate/bprint +++ b/tests/ref/fate/bprint @@ -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 |