#10590 closed defect (fixed)

magicyuv: invalid reads with valid 12-bit RGBA file

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

valgrind --leak-check=full ./ffmpeg_g -i  magicyuv_12bit_rgba.mov -y out.avi
==34101== Memcheck, a memory error detector
==34101== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==34101== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==34101== Command: ./ffmpeg_g -i magicyuv_12bit_rgba.mov -y out.avi
==34101== 
ffmpeg version N-112164-gcb26b85953 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
  configuration: 
  libavutil      58. 25.100 / 58. 25.100
  libavcodec     60. 27.100 / 60. 27.100
  libavformat    60. 13.100 / 60. 13.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9. 11.100 /  9. 11.100
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
==34101== Invalid read of size 1
==34101==    at 0xB9762C: vlc_multi_gen (vlc.c:407)
==34101==    by 0xB9762C: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a27d00 is 0 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97631: vlc_multi_gen (vlc.c:406)
==34101==    by 0xB97631: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a2fcf8 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97652: vlc_multi_gen (vlc.c:409)
==34101==    by 0xB97652: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a2fcf8 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97663: vlc_multi_gen (vlc.c:410)
==34101==    by 0xB97663: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a680f0 is 32,752 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB95FAD: add_level (vlc.c:367)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a680f8 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 2
==34101==    at 0xB95FB0: add_level (vlc.c:370)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a680fa is 32,762 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 4
==34101==    at 0xB95FBA: add_level (vlc.c:373)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==    by 0x2BB248: main (ffmpeg.c:1315)
==34101==  Address 0x5a680fc is 32,764 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB95FAD: add_level (vlc.c:367)
==34101==    by 0xB9603B: add_level (vlc.c:390)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Address 0x5a680f8 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 2
==34101==    at 0xB95FB0: add_level (vlc.c:370)
==34101==    by 0xB9603B: add_level (vlc.c:390)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Address 0x5a680fa is 32,762 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
==34101== Invalid read of size 4
==34101==    at 0xB95FBA: add_level (vlc.c:373)
==34101==    by 0xB9603B: add_level (vlc.c:390)
==34101==    by 0xB976E4: vlc_multi_gen (vlc.c:421)
==34101==    by 0xB976E4: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Address 0x5a680fc is 32,764 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101==    by 0x2DDE9A: ffmpeg_parse_options (ffmpeg_opt.c:1326)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0x7B37D8: decode_simple_internal (decode.c:433)
==34101==    by 0x7B37D8: decode_simple_receive_frame (decode.c:610)
==34101==    by 0x7B37D8: decode_receive_frame_internal (decode.c:638)
==34101==    by 0x7B4029: avcodec_send_packet (decode.c:735)
==34101==    by 0x5947BA: try_decode_frame (demux.c:2075)
==34101==    by 0x599688: avformat_find_stream_info (demux.c:2771)
==34101==    by 0x2C4F8C: ifile_open (ffmpeg_demux.c:1540)
==34101==    by 0x2DAC69: open_files (ffmpeg_opt.c:1286)
==34101== 
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'magicyuv_12bit_rgba.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2023-09-26T02:20:45.000000Z
  Duration: 00:00:00.07, start: 0.000000, bitrate: 231201 kb/s
  Stream #0:0[0x1](eng): Video: magicyuv (M2RA / 0x4152324D), gbrap12le, 1280x720, 231091 kb/s, SAR 1:1 DAR 16:9, 15 fps, 15 tbr, 600 tbn (default)
    Metadata:
      creation_time   : 2023-09-26T02:20:45.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : inno
      encoder         : MagicYUV 12-bit RGBA
Stream mapping:
  Stream #0:0 -> #0:0 (magicyuv (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
==34101== Thread 2 av:magicyu:df0:
==34101== Invalid read of size 1
==34101==    at 0xB9762C: vlc_multi_gen (vlc.c:407)
==34101==    by 0xB9762C: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Address 0x5ae5740 is 0 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97631: vlc_multi_gen (vlc.c:406)
==34101==    by 0xB97631: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Address 0x5aed738 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97652: vlc_multi_gen (vlc.c:409)
==34101==    by 0xB97652: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Address 0x5aed738 is 32,760 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101== 
==34101== Invalid read of size 1
==34101==    at 0xB97663: vlc_multi_gen (vlc.c:410)
==34101==    by 0xB97663: ff_vlc_init_multi_from_lengths (vlc.c:477)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Address 0x5b05930 is 32,752 bytes inside a block of size 32,768 free'd
==34101==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0xB965BC: vlc_common_end (vlc.c:241)
==34101==    by 0xB975F7: ff_vlc_init_multi_from_lengths (vlc.c:474)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101==  Block was alloc'd at
==34101==    at 0x484DE30: memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x484DF92: posix_memalign (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==34101==    by 0x10DCD54: av_malloc (mem.c:105)
==34101==    by 0xB973BC: vlc_common_init (vlc.c:110)
==34101==    by 0xB973BC: ff_vlc_init_multi_from_lengths (vlc.c:439)
==34101==    by 0x93E219: huff_build (magicyuv.c:91)
==34101==    by 0x93E219: build_huffman (magicyuv.c:412)
==34101==    by 0x93E65A: magy_decode_frame (magicyuv.c:636)
==34101==    by 0xA2EA4D: frame_worker_thread (pthread_frame.c:218)
==34101==    by 0x4E88B42: start_thread (pthread_create.c:442)
==34101==    by 0x4F19BB3: clone (clone.S:100)
==34101== 
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    ISFT            : Lavf60.13.100
  Stream #0:0(eng): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 15 fps, 15 tbn (default)
    Metadata:
      creation_time   : 2023-09-26T02:20:45.000000Z
      handler_name    : Apple Video Media Handler
      vendor_id       : inno
      encoder         : Lavc60.27.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame=    0 fps=0.0 q=5.8 size=       0kB time=00:00:00.00 bitrate=N/A speed=   frame=    0 fps=0.0 q=5.8 size=       0kB time=00:00:00.00 bitrate=N/A speed=   [out#0/avi @ 0x5a9a200] video:42kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 13.306201%
frame=    1 fps=0.4 q=5.8 Lsize=      48kB time=00:00:00.00 bitrate=N/A speed=   0x    
==34101== 
==34101== HEAP SUMMARY:
==34101==     in use at exit: 0 bytes in 0 blocks
==34101==   total heap usage: 2,850 allocs, 2,850 frees, 66,295,962 bytes allocated
==34101== 
==34101== All heap blocks were freed -- no leaks are possible
==34101== 
==34101== For lists of detected and suppressed errors, rerun with: -s
==34101== ERROR SUMMARY: 72 errors from 14 contexts (suppressed: 0 from 0)

Attachments (1)

magicyuv_12bit_rgba.mov (1.8 MB ) - added by ami_stuff 15 months ago.

Download all attachments as: .zip

Change History (2)

by ami_stuff, 15 months ago

Attachment: magicyuv_12bit_rgba.mov added

comment:1 by Elon Musk, 15 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.