Opened 10 years ago

Closed 9 years ago

#3775 closed defect (fixed)

Invalid read when transcoding 1x1 PNG

Reported by: pszemus Owned by:
Priority: normal Component: swscale
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

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

Attachments (1)

bg_80black.png (109 bytes ) - added by Carl Eugen Hoyos 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Carl Eugen Hoyos, 10 years ago

Component: ffmpegswscale
Keywords: valgrind removed
Reproduced by developer: set
Status: newopen
$ 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)

by Carl Eugen Hoyos, 10 years ago

Attachment: bg_80black.png added

comment:2 by pszemus, 10 years ago

Same occurs with 3x3 GIF input image: http://i.wp.pl/a/i/tsw/bg_rep_msie6.gif

comment:3 by pszemus, 10 years ago

After some testing: occurs only with PNG & GIF input images with width <= 3.

comment:4 by Carl Eugen Hoyos, 9 years ago

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