[FFmpeg-devel] [PATCH 1/3] avcodec/xbmenc: Do not add last comma	into output
    Jose Da Silva 
    digital at joescat.com
       
    Tue Jan 19 07:42:57 EET 2021
    
    
  
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-xbmenc-Do-not-add-last-comma-into-output-arr.patch
Type: text/x-patch
Size: 2460 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210118/0ee54749/attachment.bin>
    
    
More information about the ffmpeg-devel
mailing list