summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJose Da Silva <digital@joescat.com>2021-01-18 21:42:57 -0800
committerPaul B Mahol <onemda@gmail.com>2021-01-28 15:50:09 +0100
commit41b8fd3a16a0c8f2de71a5338fb4f086bd857124 (patch)
tree4abc54af5162ad4a92c8dfba3ed90f4228a84b40 /tests
parent9267e2ff0d5b518bcce6236d09f2941b2c1bba84 (diff)
avcodec/xbmenc: Do not add last comma into output
There is a minor bug in xbm encode which adds a trailing comma at the end of data. This isn't a big problem, but it would be nicer to be more technically true to an array of data (by not including the last comma). This bug fixes the output from something like this (having 4 values): static unsigned char image_bits[] = { 0x00, 0x11, 0x22, } to C code that looks like this instead (having 3 values): static unsigned char image_bits[] = { 0x00, 0x11, 0x22 } which is the intended results. Subject: [PATCH 1/3] avcodec/xbmenc: Do not add last comma into output array xbm outputs c arrays of data. Including a comma at the end means there is another value to be added. This bug fix changes something like this: static unsigned char image_bits[] = { 0x00, 0x11, 0x22, } to C code like this: static unsigned char image_bits[] = { 0x00, 0x11, 0x22 } Signed-off-by: Joe Da Silva <digital@joescat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/lavf/xbm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ref/lavf/xbm b/tests/ref/lavf/xbm
index bc157834ff..e54d6bc226 100644
--- a/tests/ref/lavf/xbm
+++ b/tests/ref/lavf/xbm
@@ -1,3 +1,3 @@
-0629055fd82366317c651a0af4bb82d7 *tests/data/images/xbm/02.xbm
+83ed197cc88f382d9253365ffef70ec5 *tests/data/images/xbm/02.xbm
tests/data/images/xbm/%02d.xbm CRC=0xc9a20204
-76411 tests/data/images/xbm/02.xbm
+76410 tests/data/images/xbm/02.xbm