[FFmpeg-trac] #10045(undetermined:closed): cfhd enc assertion

FFmpeg trac at avcodec.org
Thu Dec 1 14:58:34 EET 2022


#10045: cfhd enc assertion
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:  (none)
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:  fixed
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by ami_stuff):

 I still get invalid reads with valgrind.

 {{{
 valgrind --leak-check=full ./ffmpeg_g -i 1600.jpg -vcodec cfhd -y out.avi
 ==19073== Memcheck, a memory error detector
 ==19073== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
 ==19073== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright
 info
 ==19073== Command: ./ffmpeg_g -i 1600.jpg -vcodec cfhd -y out.avi
 ==19073==
 ffmpeg version N-109332-g45ab5307a6 Copyright (c) 2000-2022 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
   configuration: --enable-libopenjpeg
   libavutil      57. 43.100 / 57. 43.100
   libavcodec     59. 54.100 / 59. 54.100
   libavformat    59. 34.102 / 59. 34.102
   libavdevice    59.  8.101 / 59.  8.101
   libavfilter     8. 51.100 /  8. 51.100
   libswscale      6.  8.112 /  6.  8.112
   libswresample   4.  9.100 /  4.  9.100
 [mjpeg @ 0x5cb9200] EOI missing, emulating
 Input #0, jpeg_pipe, from '1600.jpg':
   Duration: N/A, bitrate: N/A
   Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
 bt470bg/unknown/unknown), 1600x1, 25 fps, 25 tbr, 25 tbn
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> cfhd (native))
 Press [q] to stop, [?] for help
 [swscaler @ 0x5d68100] deprecated pixel format used, make sure you did set
 range correctly
 [swscaler @ 0x601a480] deprecated pixel format used, make sure you did set
 range correctly
 [swscaler @ 0xeadcf40] deprecated pixel format used, make sure you did set
 range correctly
 [swscaler @ 0xed8e6c0] deprecated pixel format used, make sure you did set
 range correctly
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf59.34.102
   Stream #0:0: Video: cfhd (CFHD / 0x44484643), yuv422p10le(tv,
 bt470bg/unknown/unknown, progressive), 1600x1, q=2-31, 200 kb/s, 25 fps,
 25 tbn
     Metadata:
       encoder         : Lavc59.54.100 cfhd
 frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=
 -0.0kb==19073== Thread 19:
 ==19073== Invalid read of size 16
 ==19073==    at 0xF3A482: ??? (in ffmpeg_g)
 ==19073==    by 0xF070F3F: ???
 ==19073==    by 0x755194: cfhd_encode_frame (cfhdenc.c:454)
 ==19073==    by 0x7C0431: ff_encode_encode_cb (encode.c:199)
 ==19073==    by 0x8170A1: worker (frame_thread_encoder.c:114)
 ==19073==    by 0x502A608: start_thread (pthread_create.c:477)
 ==19073==    by 0x5166132: clone (clone.S:95)
 ==19073==  Address 0xf0411d4 is 3,220 bytes inside a block of size 3,232
 alloc'd
 ==19073==    at 0x483E0F0: memalign (in /usr/lib/x86_64-linux-gnu/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==19073==    by 0x483E212: posix_memalign (in /usr/lib/x86_64-linux-
 gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==19073==    by 0x1072AB4: av_malloc (mem.c:105)
 ==19073==    by 0x105F3B9: av_buffer_alloc (buffer.c:82)
 ==19073==    by 0x105F433: av_buffer_allocz (buffer.c:95)
 ==19073==    by 0x105FB9C: pool_alloc_buffer (buffer.c:363)
 ==19073==    by 0x105FB9C: av_buffer_pool_get (buffer.c:401)
 ==19073==    by 0x3064C0: ff_frame_pool_get (framepool.c:217)
 ==19073==    by 0x488E5A: ff_default_get_video_buffer2 (video.c:87)
 ==19073==    by 0x488F50: ff_get_video_buffer (video.c:108)
 ==19073==    by 0x41C0AC: scale_frame (vf_scale.c:765)
 ==19073==    by 0x41CB3B: filter_frame (vf_scale.c:860)
 ==19073==    by 0x2F5B19: ff_filter_frame_framed (avfilter.c:1000)
 ==19073==    by 0x2F5B19: ff_filter_frame_to_filter (avfilter.c:1144)
 ==19073==    by 0x2F5B19: ff_filter_activate_default (avfilter.c:1193)
 ==19073==    by 0x2F5B19: ff_filter_activate (avfilter.c:1352)
 ==19073==
 ==19073== Invalid read of size 16
 ==19073==    at 0xF3A4BC: ??? (in ffmpeg_g)
 ==19073==    by 0xF070F3F: ???
 ==19073==    by 0x755194: cfhd_encode_frame (cfhdenc.c:454)
 ==19073==    by 0x7C0431: ff_encode_encode_cb (encode.c:199)
 ==19073==    by 0x8170A1: worker (frame_thread_encoder.c:114)
 ==19073==    by 0x502A608: start_thread (pthread_create.c:477)
 ==19073==    by 0x5166132: clone (clone.S:95)
 ==19073==  Address 0xf0411d8 is 3,224 bytes inside a block of size 3,232
 alloc'd
 ==19073==    at 0x483E0F0: memalign (in /usr/lib/x86_64-linux-gnu/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==19073==    by 0x483E212: posix_memalign (in /usr/lib/x86_64-linux-
 gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
 ==19073==    by 0x1072AB4: av_malloc (mem.c:105)
 ==19073==    by 0x105F3B9: av_buffer_alloc (buffer.c:82)
 ==19073==    by 0x105F433: av_buffer_allocz (buffer.c:95)
 ==19073==    by 0x105FB9C: pool_alloc_buffer (buffer.c:363)
 ==19073==    by 0x105FB9C: av_buffer_pool_get (buffer.c:401)
 ==19073==    by 0x3064C0: ff_frame_pool_get (framepool.c:217)
 ==19073==    by 0x488E5A: ff_default_get_video_buffer2 (video.c:87)
 ==19073==    by 0x488F50: ff_get_video_buffer (video.c:108)
 ==19073==    by 0x41C0AC: scale_frame (vf_scale.c:765)
 ==19073==    by 0x41CB3B: filter_frame (vf_scale.c:860)
 ==19073==    by 0x2F5B19: ff_filter_frame_framed (avfilter.c:1000)
 ==19073==    by 0x2F5B19: ff_filter_frame_to_filter (avfilter.c:1144)
 ==19073==    by 0x2F5B19: ff_filter_activate_default (avfilter.c:1193)
 ==19073==    by 0x2F5B19: ff_filter_activate (avfilter.c:1352)
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10045#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list