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

FFmpeg trac at avcodec.org
Thu Jul 17 11:10:49 CEST 2014


#3775: Invalid read when transcoding 1x1 PNG
----------------------------------+--------------------------------------
             Reporter:  pszemus   |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  ffmpeg    |                  Version:  git-master
             Keywords:  valgrind  |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:
 I'm trying to transcode and rescale an 1x1 PNG image to 320x240 JPG image.
 Valgrind reports `Invalid read of size 8`.

 How to reproduce (incl. command line):
 {{{
 % valgrind ffmpeg_g -y -i http://i.wp.pl/a/i/tsw/bg_80black.png -s 320x240
 /tmp/out.jpg
 ==29959== Memcheck, a memory error detector
 ==29959== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
 ==29959== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright
 info
 ==29959== Command: ffmpeg_g -y -i http://i.wp.pl/a/i/tsw/bg_80black.png -s
 320x240 /tmp/out.jpg
 ==29959==
 ffmpeg version N-64712-g7cd6d61 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 17 2014 10:34:29 with gcc 4.4.7 (GCC) 20120313 (Red Hat
 4.4.7-4)
   configuration: --enable-pthreads --enable-libmp3lame --enable-version3
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac
 --enable-gpl --enable-nonfree --enable-libvpx --enable-libvorbis --enable-
 libx264 --enable-protocol=https --enable-openssl --extra-
 cflags=-I/opt/WP/common.libs/inc --extra-ldflags=-L/opt/WP/common.libs/lib
 --disable-optimizations
   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 'http://i.wp.pl/a/i/tsw/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
 [swscaler @ 0x42c4b40] deprecated pixel format used, make sure you did set
 range correctly
 Output #0, image2, to '/tmp/out.jpg':
   Metadata:
     encoder         : Lavf55.48.101
     Stream #0:0: Video: mjpeg, yuvj444p, 320x240, q=2-31, 200 kb/s, 25
 fps, 25 tbn, 25 tbc
     Metadata:
       encoder         : Lavc55.69.100 mjpeg
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> mjpeg (native))
 Press [q] to stop, [?] for help
 ==29959== Invalid read of size 8
 ==29959==    at 0x8BA0EEE: ??? (scale.asm:429)
 ==29959==  Address 0x42ca95a is 6 bytes before a block of size 160 alloc'd
 ==29959==    at 0x4005DB9: memalign (vg_replace_malloc.c:727)
 ==29959==    by 0x4005E68: posix_memalign (vg_replace_malloc.c:876)
 ==29959==    by 0x8BB4F34: av_malloc (mem.c:95)
 ==29959==    by 0x8AA2846: sws_init_context (utils.c:1345)
 ==29959==    by 0x8129963: config_props (vf_scale.c:381)
 ==29959==    by 0x80816AB: avfilter_config_links (avfilter.c:254)
 ==29959==    by 0x8081649: avfilter_config_links (avfilter.c:243)
 ==29959==    by 0x808402A: graph_config_links (avfiltergraph.c:275)
 ==29959==    by 0x8086650: avfilter_graph_config (avfiltergraph.c:1196)
 ==29959==    by 0x80618CA: configure_filtergraph (ffmpeg_filter.c:906)
 ==29959==    by 0x806B481: transcode_init (ffmpeg.c:2677)
 ==29959==    by 0x806F415: transcode (ffmpeg.c:3632)
 ==29959==
 ==29959== Invalid read of size 8
 ==29959==    at 0x8BA0EF3: ??? (scale.asm:429)
 ==29959==  Address 0x42ca95a is 6 bytes before a block of size 160 alloc'd
 ==29959==    at 0x4005DB9: memalign (vg_replace_malloc.c:727)
 ==29959==    by 0x4005E68: posix_memalign (vg_replace_malloc.c:876)
 ==29959==    by 0x8BB4F34: av_malloc (mem.c:95)
 ==29959==    by 0x8AA2846: sws_init_context (utils.c:1345)
 ==29959==    by 0x8129963: config_props (vf_scale.c:381)
 ==29959==    by 0x80816AB: avfilter_config_links (avfilter.c:254)
 ==29959==    by 0x8081649: avfilter_config_links (avfilter.c:243)
 ==29959==    by 0x808402A: graph_config_links (avfiltergraph.c:275)
 ==29959==    by 0x8086650: avfilter_graph_config (avfiltergraph.c:1196)
 ==29959==    by 0x80618CA: configure_filtergraph (ffmpeg_filter.c:906)
 ==29959==    by 0x806B481: transcode_init (ffmpeg.c:2677)
 ==29959==    by 0x806F415: transcode (ffmpeg.c:3632)
 ==29959==
 ==29959== Invalid read of size 8
 ==29959==    at 0x8BA0EFF: ??? (scale.asm:429)
 ==29959==  Address 0x42ca95a is 6 bytes before a block of size 160 alloc'd
 ==29959==    at 0x4005DB9: memalign (vg_replace_malloc.c:727)
 ==29959==    by 0x4005E68: posix_memalign (vg_replace_malloc.c:876)
 ==29959==    by 0x8BB4F34: av_malloc (mem.c:95)
 ==29959==    by 0x8AA2846: sws_init_context (utils.c:1345)
 ==29959==    by 0x8129963: config_props (vf_scale.c:381)
 ==29959==    by 0x80816AB: avfilter_config_links (avfilter.c:254)
 ==29959==    by 0x8081649: avfilter_config_links (avfilter.c:243)
 ==29959==    by 0x808402A: graph_config_links (avfiltergraph.c:275)
 ==29959==    by 0x8086650: avfilter_graph_config (avfiltergraph.c:1196)
 ==29959==    by 0x80618CA: configure_filtergraph (ffmpeg_filter.c:906)
 ==29959==    by 0x806B481: transcode_init (ffmpeg.c:2677)
 ==29959==    by 0x806F415: transcode (ffmpeg.c:3632)
 ==29959==
 ==29959== Invalid read of size 8
 ==29959==    at 0x8BA0F04: ??? (scale.asm:429)
 ==29959==  Address 0x42ca95a is 6 bytes before a block of size 160 alloc'd
 ==29959==    at 0x4005DB9: memalign (vg_replace_malloc.c:727)
 ==29959==    by 0x4005E68: posix_memalign (vg_replace_malloc.c:876)
 ==29959==    by 0x8BB4F34: av_malloc (mem.c:95)
 ==29959==    by 0x8AA2846: sws_init_context (utils.c:1345)
 ==29959==    by 0x8129963: config_props (vf_scale.c:381)
 ==29959==    by 0x80816AB: avfilter_config_links (avfilter.c:254)
 ==29959==    by 0x8081649: avfilter_config_links (avfilter.c:243)
 ==29959==    by 0x808402A: graph_config_links (avfiltergraph.c:275)
 ==29959==    by 0x8086650: avfilter_graph_config (avfiltergraph.c:1196)
 ==29959==    by 0x80618CA: configure_filtergraph (ffmpeg_filter.c:906)
 ==29959==    by 0x806B481: transcode_init (ffmpeg.c:2677)
 ==29959==    by 0x806F415: transcode (ffmpeg.c:3632)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x8ADA037: yuv2plane1_8_c (common.h:139)
 ==29959==    by 0x8A9A873: swscale (swscale.c:618)
 ==29959==    by 0x8A9CD93: sws_scale (swscale.c:1083)
 ==29959==    by 0x8129C72: scale_slice (vf_scale.c:429)
 ==29959==    by 0x812A304: filter_frame (vf_scale.c:526)
 ==29959==    by 0x80836A7: ff_filter_frame_framed (avfilter.c:1081)
 ==29959==    by 0x8083A1D: ff_filter_frame (avfilter.c:1161)
 ==29959==    by 0x8083278: default_filter_frame (avfilter.c:994)
 ==29959==    by 0x80836A7: ff_filter_frame_framed (avfilter.c:1081)
 ==29959==    by 0x8083A1D: ff_filter_frame (avfilter.c:1161)
 ==29959==    by 0x8089671: request_frame (buffersrc.c:499)
 ==29959==    by 0x8088B3D: av_buffersrc_add_frame_internal
 (buffersrc.c:181)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x88E7971: dct_quantize_ssse3
 (mpegvideoenc_template.c:236)
 ==29959==    by 0x86296A1: encode_thread (mpegvideo_enc.c:2288)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x86296B6: encode_thread (mpegvideo_enc.c:2294)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B616A: ff_mjpeg_encode_dc (mjpegenc_common.c:368)
 ==29959==    by 0x85B47ED: encode_block (mjpegenc.c:101)
 ==29959==    by 0x85B4A33: ff_mjpeg_encode_mb (mjpegenc.c:150)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4946: encode_block (mjpegenc.c:111)
 ==29959==    by 0x85B4A33: ff_mjpeg_encode_mb (mjpegenc.c:150)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4950: encode_block (mjpegenc.c:138)
 ==29959==    by 0x85B4A33: ff_mjpeg_encode_mb (mjpegenc.c:150)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B616A: ff_mjpeg_encode_dc (mjpegenc_common.c:368)
 ==29959==    by 0x85B47ED: encode_block (mjpegenc.c:101)
 ==29959==    by 0x85B4A52: ff_mjpeg_encode_mb (mjpegenc.c:151)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4946: encode_block (mjpegenc.c:111)
 ==29959==    by 0x85B4A52: ff_mjpeg_encode_mb (mjpegenc.c:151)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4950: encode_block (mjpegenc.c:138)
 ==29959==    by 0x85B4A52: ff_mjpeg_encode_mb (mjpegenc.c:151)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B616A: ff_mjpeg_encode_dc (mjpegenc_common.c:368)
 ==29959==    by 0x85B47ED: encode_block (mjpegenc.c:101)
 ==29959==    by 0x85B4B11: ff_mjpeg_encode_mb (mjpegenc.c:158)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4946: encode_block (mjpegenc.c:111)
 ==29959==    by 0x85B4B11: ff_mjpeg_encode_mb (mjpegenc.c:158)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4950: encode_block (mjpegenc.c:138)
 ==29959==    by 0x85B4B11: ff_mjpeg_encode_mb (mjpegenc.c:158)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B616A: ff_mjpeg_encode_dc (mjpegenc_common.c:368)
 ==29959==    by 0x85B47ED: encode_block (mjpegenc.c:101)
 ==29959==    by 0x85B4B30: ff_mjpeg_encode_mb (mjpegenc.c:159)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4946: encode_block (mjpegenc.c:111)
 ==29959==    by 0x85B4B30: ff_mjpeg_encode_mb (mjpegenc.c:159)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 ==29959== Conditional jump or move depends on uninitialised value(s)
 ==29959==    at 0x85B4950: encode_block (mjpegenc.c:138)
 ==29959==    by 0x85B4B30: ff_mjpeg_encode_mb (mjpegenc.c:159)
 ==29959==    by 0x8629C26: encode_thread (mpegvideo_enc.c:2387)
 ==29959==    by 0x872F5BB: avcodec_default_execute (utils.c:1108)
 ==29959==    by 0x862BB0A: encode_picture (mpegvideo_enc.c:3679)
 ==29959==    by 0x861964A: ff_MPV_encode_picture (mpegvideo_enc.c:1720)
 ==29959==    by 0x8731D5F: avcodec_encode_video2 (utils.c:2034)
 ==29959==    by 0x80648B8: do_video_out (ffmpeg.c:1036)
 ==29959==    by 0x8065501: reap_filters (ffmpeg.c:1204)
 ==29959==    by 0x806F408: transcode_step (ffmpeg.c:3618)
 ==29959==    by 0x806F4C3: transcode (ffmpeg.c:3661)
 ==29959==    by 0x806F98C: main (ffmpeg.c:3837)
 ==29959==
 frame=    1 fps=0.0 q=1.6 Lsize=N/A time=00:00:00.04 bitrate=N/A
 video:3kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 ==29959==
 ==29959== HEAP SUMMARY:
 ==29959==     in use at exit: 42,652 bytes in 2,814 blocks
 ==29959==   total heap usage: 4,785 allocs, 1,971 frees, 2,515,874 bytes
 allocated
 ==29959==
 ==29959== LEAK SUMMARY:
 ==29959==    definitely lost: 0 bytes in 0 blocks
 ==29959==    indirectly lost: 0 bytes in 0 blocks
 ==29959==      possibly lost: 0 bytes in 0 blocks
 ==29959==    still reachable: 42,652 bytes in 2,814 blocks
 ==29959==         suppressed: 0 bytes in 0 blocks
 ==29959== Rerun with --leak-check=full to see details of leaked memory
 ==29959==
 ==29959== For counts of detected and suppressed errors, rerun with: -v
 ==29959== Use --track-origins=yes to see where uninitialised values come
 from
 ==29959== ERROR SUMMARY: 7280 errors from 19 contexts (suppressed: 50 from
 10)
 }}}

 Console output provided by ffmpeg -v 9 -loglevel 99 -i followed by the
 name:
 {{{
 % ffmpeg -v 9 -loglevel 99 -i http://i.wp.pl/a/i/tsw/bg_80black.png
 ffmpeg version N-64712-g7cd6d61 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 17 2014 10:34:29 with gcc 4.4.7 (GCC) 20120313 (Red Hat
 4.4.7-4)
   configuration: --enable-pthreads --enable-libmp3lame --enable-version3
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac
 --enable-gpl --enable-nonfree --enable-libvpx --enable-libvorbis --enable-
 libx264 --enable-protocol=https --enable-openssl --extra-
 cflags=-I/opt/WP/common.libs/inc --extra-ldflags=-L/opt/WP/common.libs/lib
 --disable-optimizations
   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
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input file with argument
 'http://i.wp.pl/a/i/tsw/bg_80black.png'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 http://i.wp.pl/a/i/tsw/bg_80black.png.
 Successfully parsed a group of options.
 Opening an input file: http://i.wp.pl/a/i/tsw/bg_80black.png.
 [http @ 0xaffc500] request: GET /a/i/tsw/bg_80black.png HTTP/1.1
 User-Agent: Lavf/55.48.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: i.wp.pl


 [http @ 0xaffc500] header='HTTP/1.1 206 Partial Content'
 [http @ 0xaffc500] http_code=206
 [http @ 0xaffc500] header='Server: nginx'
 [http @ 0xaffc500] header='Date: Thu, 17 Jul 2014 09:05:10 GMT'
 [http @ 0xaffc500] header='Content-Type: image/png'
 [http @ 0xaffc500] header='Content-Length: 109'
 [http @ 0xaffc500] header='Connection: close'
 [http @ 0xaffc500] header='Last-Modified: Thu, 02 Jul 2009 10:33:45 GMT'
 [http @ 0xaffc500] header='ETag: "4a4c8d09-6d"'
 [http @ 0xaffc500] header='Expires: Sat, 16 Aug 2014 09:05:10 GMT'
 [http @ 0xaffc500] header='Cache-Control: max-age=2592000'
 [http @ 0xaffc500] header='Cache-Control: public'
 [http @ 0xaffc500] header='Content-Range: bytes 0-108/109'
 [http @ 0xaffc500] header=''
 [http @ 0xaffc500] request: GET /a/i/tsw/bg_80black.png HTTP/1.1
 User-Agent: Lavf/55.48.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: i.wp.pl


 [http @ 0xaffc500] header='HTTP/1.1 206 Partial Content'
 [http @ 0xaffc500] http_code=206
 [http @ 0xaffc500] header='Server: nginx'
 [http @ 0xaffc500] header='Date: Thu, 17 Jul 2014 09:05:10 GMT'
 [http @ 0xaffc500] header='Content-Type: image/png'
 [http @ 0xaffc500] header='Content-Length: 109'
 [http @ 0xaffc500] header='Connection: close'
 [http @ 0xaffc500] header='Last-Modified: Thu, 02 Jul 2009 10:33:45 GMT'
 [http @ 0xaffc500] header='ETag: "4a4c8d09-6d"'
 [http @ 0xaffc500] header='Expires: Sat, 16 Aug 2014 09:05:10 GMT'
 [http @ 0xaffc500] header='Cache-Control: max-age=2592000'
 [http @ 0xaffc500] header='Cache-Control: public'
 [http @ 0xaffc500] header='Content-Range: bytes 0-108/109'
 [http @ 0xaffc500] header=''
 [AVIOContext @ 0xaffc560] Statistics: 109 bytes read, 0 seeks
 Input #0, image2, from 'http://i.wp.pl/a/i/tsw/bg_80black.png':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0, 1, 1/25: Video: png, rgba, 1x1, 1/25, 25 tbr, 25 tbn, 25
 tbc
 Successfully opened the file.
 At least one output file must be specified
 }}}

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


More information about the FFmpeg-trac mailing list