[FFmpeg-trac] #3775(swscale:open): Invalid read when transcoding 1x1 PNG

FFmpeg trac at avcodec.org
Thu Jul 17 11:18:37 CEST 2014


#3775: Invalid read when transcoding 1x1 PNG
------------------------------------+-----------------------------------
             Reporter:  pszemus     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  swscale
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Changes (by cehoyos):

 * keywords:  valgrind =>
 * status:  new => open
 * component:  ffmpeg => swscale
 * reproduced:  0 => 1


Comment:

 {{{
 $ valgrind ffmpeg_g -i bg_80black.png -s 320x240 -f null -
 ==32540== Memcheck, a memory error detector
 ==32540== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
 ==32540== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
 info
 ==32540== Command: ffmpeg_g -i bg_80black.png -s 320x240 -f null -
 ==32540==
 ffmpeg version N-64712-g7cd6d61 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 17 2014 11:17:02 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 92.100 / 52. 92.100
   libavcodec     55. 69.100 / 55. 69.100
   libavformat    55. 48.101 / 55. 48.101
   libavdevice    55. 13.102 / 55. 13.102
   libavfilter     4. 11.100 /  4. 11.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, image2, from 'bg_80black.png':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: png, rgba, 1x1, 25 tbr, 25 tbn, 25 tbc
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf55.48.101
     Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 320x240,
 q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
     Metadata:
       encoder         : Lavc55.69.100 rawvideo
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> rawvideo (native))
 Press [q] to stop, [?] for help
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF952B: ??? (scale.asm:429)
 ==32540==    by 0xDA6B91: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9530: ??? (scale.asm:429)
 ==32540==    by 0xDA6B91: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF953E: ??? (scale.asm:429)
 ==32540==    by 0xDA6B91: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9543: ??? (scale.asm:429)
 ==32540==    by 0xDA6B91: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF952B: ??? (scale.asm:429)
 ==32540==    by 0xDA6D62: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9530: ??? (scale.asm:429)
 ==32540==    by 0xDA6D62: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF953E: ??? (scale.asm:429)
 ==32540==    by 0xDA6D62: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9543: ??? (scale.asm:429)
 ==32540==    by 0xDA6D62: swscale (swscale.c:266)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF952B: ??? (scale.asm:429)
 ==32540==    by 0xDA6FF4: swscale (swscale.c:320)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9530: ??? (scale.asm:429)
 ==32540==    by 0xDA6FF4: swscale (swscale.c:320)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF953E: ??? (scale.asm:429)
 ==32540==    by 0xDA6FF4: swscale (swscale.c:320)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Invalid read of size 8
 ==32540==    at 0xDF9543: ??? (scale.asm:429)
 ==32540==    by 0xDA6FF4: swscale (swscale.c:320)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==  Address 0xaf76f9a is 6 bytes before a block of size 160 alloc'd
 ==32540==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==32540==    by 0xE0D359: av_malloc (mem.c:95)
 ==32540==    by 0x462260: sws_init_context (utils.c:1345)
 ==32540==    by 0x4E23B3: config_props (vf_scale.c:381)
 ==32540==    by 0x495A2C: avfilter_config_links (avfilter.c:254)
 ==32540==    by 0x499BFE: avfilter_graph_config (avfiltergraph.c:275)
 ==32540==    by 0x47BCB7: configure_filtergraph (ffmpeg_filter.c:906)
 ==32540==    by 0x480079: transcode_init (ffmpeg.c:2677)
 ==32540==    by 0x46B4A3: main (ffmpeg.c:3632)
 ==32540==
 ==32540== Conditional jump or move depends on uninitialised value(s)
 ==32540==    at 0xDC7EC0: yuv2rgba32_full_1_c (output.c:1474)
 ==32540==    by 0xDA726C: swscale (swscale.c:648)
 ==32540==    by 0xDA8850: sws_scale (swscale.c:1109)
 ==32540==    by 0x4E2B54: filter_frame (vf_scale.c:429)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x496C70: default_filter_frame (avfilter.c:1161)
 ==32540==    by 0x496769: ff_filter_frame_framed (avfilter.c:1081)
 ==32540==    by 0x497868: ff_filter_frame (avfilter.c:1161)
 ==32540==    by 0x49B941: request_frame (buffersrc.c:499)
 ==32540==    by 0x49BBDA: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==32540==    by 0x49BF6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==32540==    by 0x482881: decode_video (ffmpeg.c:1974)
 ==32540==
 [null @ 0xaf10240] Encoder did not produce proper pts, making some up.
 frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 ==32540==
 ==32540== HEAP SUMMARY:
 ==32540==     in use at exit: 128 bytes in 3 blocks
 ==32540==   total heap usage: 1,554 allocs, 1,551 frees, 948,844 bytes
 allocated
 ==32540==
 ==32540== LEAK SUMMARY:
 ==32540==    definitely lost: 0 bytes in 0 blocks
 ==32540==    indirectly lost: 0 bytes in 0 blocks
 ==32540==      possibly lost: 0 bytes in 0 blocks
 ==32540==    still reachable: 128 bytes in 3 blocks
 ==32540==         suppressed: 0 bytes in 0 blocks
 ==32540== Rerun with --leak-check=full to see details of leaked memory
 ==32540==
 ==32540== For counts of detected and suppressed errors, rerun with: -v
 ==32540== Use --track-origins=yes to see where uninitialised values come
 from
 ==32540== ERROR SUMMARY: 77760 errors from 13 contexts (suppressed: 2 from
 2)
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3775#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list