silicontrip / lavtools

mjpeg utils and avcodec frame based video editing tools and ffmpeg filters
15 stars 3 forks source link

cppcheck #4

Closed Nikoli closed 11 years ago

Nikoli commented 12 years ago

http://sourceforge.net/apps/trac/cppcheck/ cppcheck-1.56 found several problems, please fix.

[libav2yuv.c:1022]: (style) Unused variable: y
[libav2yuv.c:1023]: (style) Unused variable: frame_data_size
[libav2yuv.c:115]: (style) Unused variable: le
[libav2yuv.c:115]: (style) Unused variable: off
[libav2yuv.c:1458]: (error) Memory leak: edllist
[libav2yuv.c:232]: (style) Unused variable: le
[libav2yuv.c:232]: (style) Unused variable: off
[libav2yuv.c:295]: (style) Variable 'max' is assigned a value that is never used
[libav2yuv.c:796]: (style) Variable 'r' is assigned a value that is never used
[libav2yuv.c:818]: (style) Unused variable: yuv_width
[libav2yuv.c:959]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses
[libav-bitrate.c:121]: (error) Memory leak: stream_size
[libav-bitrate.c:44]: (style) Unused variable: pFrame444
[libav-bitrate.c:47]: (style) Unused variable: numBytes
[libav-bitrate.c:48]: (style) Unused variable: buffer
[libav-bitrate.c:50]: (style) Unused variable: write_error_code
[libav-bitrate.c:51]: (style) Unused variable: y
[libavmux.c:268]: (error) Memory leak: pFormatCtx
[libavmux.c:60]: (style) Variable 'audio_bytes' is assigned a value that is never used
[libavmux.c:61]: (style) Variable 'video_bytes' is assigned a value that is never used
[utilyuv.c:352]: (style) The scope of the variable 'totalMinutes' can be reduced
[utilyuv.c:352]: (style) Unused variable: dropFrames
[utilyuv.c:352]: (style) Unused variable: timeBase
[utilyuv.c:386]: (style) The scope of the variable 'n' can be reduced
[utilyuv.c:386]: (style) Unused variable: d
[utilyuv.c:386]: (style) Unused variable: ofc
[utilyuv.c:387]: (style) The scope of the variable 'smpted' can be reduced
[utilyuv.c:387]: (style) The scope of the variable 'smptem' can be reduced
[vf_broadcast.c:168]: (style) The scope of the variable 'min' can be reduced
[vf_broadcast.c:169]: (style) The scope of the variable 'max' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'luma' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'i' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'j' can be reduced
[vf_broadcast.c:227] -> [vf_broadcast.c:198]: (style) Found duplicate if expressions.
[vf_broadcast.c:64]: (style) The scope of the variable 'argc' can be reduced
[vf_broadcast.c:67]: (style) The scope of the variable 'frames_args' can be reduced
[vf_overlay.c:179]: (style) Variable 'ovl' is assigned a value that is never used
[vf_overlay.c:28]: (style) Variable 'crop' is assigned a value that is never used
[vf_overlay.c:72]: (style) Variable 'pCodec' is not assigned a value
[vf_watermark.c:123]: (warning) scanf without field width limits can crash with huge input data.
[vf_watermark.c:152]: (error) Resource leak: fd
[vf_watermark.c:168]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:170]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:172]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:85]: (style) The scope of the variable 'argc' can be reduced
[yuv2jpeg.c:231]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'double_height' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'top_field' is assigned a value that is never used
[yuv2jpeg.c:234]: (style) Unused variable: out_streaminfo
[yuv2jpeg.c:235]: (style) Unused variable: frame_rate
[yuv2jpeg.c:236]: (style) Unused variable: interlaced
[yuv2jpeg.c:236]: (style) Variable 'ilace' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuv2jpeg.c:237]: (style) Unused variable: height
[yuv2jpeg.c:293]: (error) Memory leak: format_string
[yuvadjust.c:179]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvadjust.c:183]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvadjust.c:184]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvafps.c:267]: (style) Unused variable: edstf
[yuvafps.c:267]: (style) Unused variable: esrcf
[yuvafps.c:267]: (style) Unused variable: sdstf
[yuvafps.c:267]: (style) Unused variable: ssrcf
[yuvafps.c:268]: (style) Unused variable: odstf
[yuvafps.c:268]: (style) Unused variable: osrcf
[yuvafps.c:269]: (style) Variable 'h' is assigned a value that is never used
[yuvafps.c:269]: (style) Variable 'w' is assigned a value that is never used
[yuvaifps.c:145]: (style) Unused variable: c
[yuvaifps.c:344]: (style) Unused variable: de
[yuvaifps.c:344]: (style) Unused variable: se
[yuvaifps.c:397]: (style) Unused variable: edstf
[yuvaifps.c:397]: (style) Unused variable: esrcf
[yuvaifps.c:397]: (style) Unused variable: sdstf
[yuvaifps.c:397]: (style) Unused variable: ssrcf
[yuvaifps.c:398]: (style) Unused variable: odstf
[yuvaifps.c:398]: (style) Unused variable: osrcf
[yuvaifps.c:399]: (style) Variable 'h' is assigned a value that is never used
[yuvaifps.c:399]: (style) Variable 'w' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'double_height' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'top_field' is assigned a value that is never used
[yuvbilateral.c:254]: (style) Unused variable: out_streaminfo
[yuvbilateral.c:255]: (style) Unused variable: frame_rate
[yuvbilateral.c:256]: (style) Unused variable: interlaced
[yuvbilateral.c:256]: (style) Variable 'ilace' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvbilateral.c:257]: (style) Unused variable: height
[yuvbilateral.c:57]: (style) struct or union member 'parameters::kernelR' is never used
[yuvconvolve.c:107]: (style) Variable 'dim' is assigned a value that is never used
[yuvconvolve.c:158]: (style) Unused variable: uv_frame_data_size
[yuvconvolve.c:158]: (style) Unused variable: y_frame_data_size
[yuvconvolve.c:281]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvconvolve.c:285]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvconvolve.c:286]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvcrop.c:125]: (style) Variable 'cheight' is assigned a value that is never used
[yuvcrop.c:148]: (style) The scope of the variable 'bottom' can be reduced
[yuvcrop.c:148]: (style) The scope of the variable 'right' can be reduced
[yuvcrop.c:306]: (style) Variable 'cx' is assigned a value that is never used
[yuvcrop.c:425]: (style) Unused variable: colourarg
[yuvcrop.c:426]: (style) Unused variable: areaarg
[yuvcrop.c:456]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvcrop.c:461]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ch' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'w' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlaceB.c:230]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posn
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posp
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posn2
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posp2
[yuvdeinterlaceB.c:292]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:292]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlaceB.c:292]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos1
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos2
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos3
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos4
[yuvdeinterlaceB.c:372]: (style) Unused variable: hp
[yuvdeinterlaceB.c:373]: (style) Unused variable: ch
[yuvdeinterlaceB.c:373]: (style) Unused variable: cw
[yuvdeinterlaceB.c:376]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlaceB.c:538]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlaceB.c:680]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdeinterlaceB.c:94]: (style) Variable 'hp' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'w' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlaceB.c:98]: (style) Unused variable: ai
[yuvdeinterlaceB.c:98]: (style) Unused variable: ar
[yuvdeinterlaceB.c:98]: (style) Unused variable: di
[yuvdeinterlaceB.c:98]: (style) Unused variable: dr
[yuvdeinterlaceB.c:98]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlaceB.c:99]: (style) Unused variable: a
[yuvdeinterlaceB.c:99]: (style) Unused variable: d
[yuvdeinterlace.c:157]: (style) Variable 'mean' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlace.c:210]: (style) Unused variable: ai
[yuvdeinterlace.c:210]: (style) Unused variable: ar
[yuvdeinterlace.c:210]: (style) Unused variable: di
[yuvdeinterlace.c:210]: (style) Unused variable: dr
[yuvdeinterlace.c:210]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlace.c:211]: (style) Unused variable: a
[yuvdeinterlace.c:211]: (style) Unused variable: d
[yuvdeinterlace.c:365]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlace.c:365]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posn' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posp' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posn2' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posp2' can be reduced
[yuvdeinterlace.c:479]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:619]: (style) Unused variable: hp
[yuvdeinterlace.c:620]: (style) Unused variable: ch
[yuvdeinterlace.c:620]: (style) Unused variable: cw
[yuvdeinterlace.c:623]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlace.c:789]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlace.c:931]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdiag.c:168]: (style) Unused variable: dh
[yuvdiag.c:187]: (style) The scope of the variable 'y' can be reduced
[yuvdiag.c:187]: (style) Unused variable: x
[yuvdiag.c:188]: (style) The scope of the variable 'h' can be reduced
[yuvdiag.c:188]: (style) The scope of the variable 'w' can be reduced
[yuvdiag.c:189]: (style) The scope of the variable 'depth' can be reduced
[yuvdiag.c:189]: (style) The scope of the variable 'height' can be reduced
[yuvdiag.c:189]: (style) The scope of the variable 'type' can be reduced
[yuvdiag.c:189]: (style) The scope of the variable 'width' can be reduced
[yuvdiag.c:251]: (style) Unused variable: rpos
[yuvdiag.c:344]: (style) Unused variable: font_data
[yuvdiag.c:427]: (error) Deallocation of an auto-variable results in undefined behaviour.
[yuvdiag.c:440]: (style) Variable 'height' is assigned a value that is never used
[yuvdiag.c:441]: (style) Variable 'oheight' is assigned a value that is never used
[yuvdiag.c:556]: (style) Variable 'ocheight' is assigned a value that is never used
[yuvdiag.c:556]: (style) Variable 'ocwidth' is assigned a value that is never used
[yuvdiag.c:557]: (style) Variable 'oheight' is assigned a value that is never used
[yuvdiag.c:631]: (style) Variable 'cheight' is assigned a value that is never used
[yuvdiag.c:631]: (style) Variable 'cwidth' is assigned a value that is never used
[yuvdiag.c:703]: (style) Unused variable: cheight
[yuvdiag.c:703]: (style) Unused variable: cwidth
[yuvdiag.c:706]: (style) The scope of the variable 'choice' can be reduced
[yuvdiag.c:706]: (style) Variable 'choice' is assigned a value that is never used
[yuvdiff.c:190]: (style) Unused variable: frame_data_size
[yuvdiff.c:194]: (style) Unused variable: ch
[yuvdiff.c:194]: (style) Unused variable: cw
[yuvdiff.c:194]: (style) Unused variable: h
[yuvdiff.c:194]: (style) Unused variable: w
[yuvdiff.c:194]: (style) Unused variable: x
[yuvdiff.c:195]: (style) Variable 'l' is assigned a value that is never used
[yuvdiff.c:400]: (style) Unused variable: compare_streaminfo
[yuvfade.c:168]: (style) Variable 'frame_rate' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'double_height' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'top_field' is assigned a value that is never used
[yuvfieldrev.c:128]: (style) Unused variable: frame_rate
[yuvfieldrev.c:129]: (style) Unused variable: interlaced
[yuvfieldrev.c:129]: (style) Variable 'ilace' is assigned a value that is never used
[yuvfieldrev.c:129]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvfieldrev.c:130]: (style) Unused variable: height
[yuvGENERIC.c:139]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'double_height' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'top_field' is assigned a value that is never used
[yuvGENERIC.c:142]: (style) Unused variable: out_streaminfo
[yuvGENERIC.c:143]: (style) Unused variable: frame_rate
[yuvGENERIC.c:144]: (style) Unused variable: interlaced
[yuvGENERIC.c:144]: (style) Variable 'ilace' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvGENERIC.c:145]: (style) Unused variable: height
[yuvhsync.c:187]: (style) Unused variable: uv_frame_data_size
[yuvhsync.c:187]: (style) Unused variable: y_frame_data_size
[yuvhsync.c:190]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvhsync.c:191]: (style) Unused variable: cw
[yuvhsync.c:191]: (style) Unused variable: w
[yuvhsync.c:191]: (style) Unused variable: x
[yuvhsync.c:191]: (style) Variable 'ch' is assigned a value that is never used
[yuvhsync.c:245]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvhsync.c:249]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvhsync.c:250]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:193]: (style) Unused variable: frame_data_size
[yuvilace.c:197]: (style) Variable 'f' is assigned a value that is never used
[yuvilace.c:197]: (style) Variable 'l' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'points' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'window' is assigned a value that is never used
[yuvilace.c:349]: (style) The scope of the variable 'drop_frames' can be reduced
[yuvilace.c:349]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvilace.c:353]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvilace.c:354]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:91]: (style) The scope of the variable 't' can be reduced
[yuvnlmeans.c:131]: (style) Variable 'Sxa' is assigned a value that is never used
[yuvnlmeans.c:137]: (style) Variable 'Axa' is assigned a value that is never used
[yuvnlmeans.c:727]: (style) Variable 'Syd' is assigned a value that is never used
[yuvnlmeans.c:729]: (style) Variable 'h2in' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'double_height' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'top_field' is assigned a value that is never used
[yuvnlmeans.c:934]: (style) Unused variable: out_streaminfo
[yuvnlmeans.c:935]: (style) Unused variable: frame_rate
[yuvnlmeans.c:936]: (style) Unused variable: interlaced
[yuvnlmeans.c:936]: (style) Variable 'ilace' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvnlmeans.c:937]: (style) Unused variable: height
[yuvpixelgraph.c:144]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'double_height' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'top_field' is assigned a value that is never used
[yuvpixelgraph.c:147]: (style) Unused variable: out_streaminfo
[yuvpixelgraph.c:148]: (style) Unused variable: frame_rate
[yuvpixelgraph.c:149]: (style) Unused variable: interlaced
[yuvpixelgraph.c:149]: (style) Variable 'ilace' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvpixelgraph.c:150]: (style) Unused variable: height
[yuvrfps.c:130]: (style) Variable 'src_frame_counter' is assigned a value that is never used
[yuvrfps.c:308]: (error) Memory leak: bri
[yuvrfps.c:308]: (error) Memory leak: bro
[yuvrfps.c:374]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:107]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:113]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'?
[yuvsubtitle.c:143]: (style) Unused variable: glyph_index
[yuvsubtitle.c:144]: (style) Variable 'pen_y' is assigned a value that is never used
[yuvsubtitle.c:145]: (style) Unused variable: special
[yuvsubtitle.c:147]: (style) Unused variable: w
[yuvsubtitle.c:147]: (style) Unused variable: x
[yuvsubtitle.c:147]: (style) Unused variable: y
[yuvsubtitle.c:147]: (style) Unused variable: z
[yuvsubtitle.c:227]: (style) Unused variable: glyph_index
[yuvsubtitle.c:228]: (style) Unused variable: x
[yuvsubtitle.c:228]: (style) Unused variable: y
[yuvsubtitle.c:229]: (style) Unused variable: error
[yuvsubtitle.c:231]: (style) Unused variable: bri
[yuvsubtitle.c:232]: (style) Unused variable: piu
[yuvsubtitle.c:232]: (style) Unused variable: piv
[yuvsubtitle.c:232]: (style) Unused variable: piy
[yuvsubtitle.c:235]: (style) Unused variable: special
[yuvsubtitle.c:429]: (style) Variable 'max' is assigned a value that is never used
[yuvsubtitle.c:481]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:512]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'double_height' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'top_field' is assigned a value that is never used
[yuvsubtitle.c:515]: (style) Unused variable: out_streaminfo
[yuvsubtitle.c:516]: (style) Unused variable: frame_rate
[yuvsubtitle.c:517]: (style) Unused variable: interlaced
[yuvsubtitle.c:517]: (style) Variable 'ilace' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvsubtitle.c:567]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:97]: (style) The scope of the variable 'special' can be reduced
[yuvtbilateral.c:118]: (style) Unused variable: y
[yuvtbilateral.c:343]: (error) Memory leak: yuv_data
[yuvtbilateral.c:352]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'double_height' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'top_field' is assigned a value that is never used
[yuvtbilateral.c:355]: (style) Unused variable: out_streaminfo
[yuvtbilateral.c:356]: (style) Unused variable: frame_rate
[yuvtbilateral.c:357]: (style) Unused variable: interlaced
[yuvtbilateral.c:357]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtbilateral.c:358]: (style) Unused variable: height
[yuvtbilateral.c:76]: (style) struct or union member 'parameters::kernelR' is never used
[yuvtbilateral.c:82]: (style) struct or union member 'parameters::direction' is never used
[yuvtout.c:109]: (style) The scope of the variable 'total' can be reduced
[yuvtout.c:110]: (style) The scope of the variable 'x' can be reduced
[yuvtout.c:110]: (style) Unused variable: y
[yuvtout.c:110]: (style) Unused variable: z
[yuvtout.c:218]: (style) Unused variable: c
[yuvtout.c:218]: (style) Unused variable: d
[yuvtout.c:284]: (style) Variable 'length' is assigned a value that is never used
[yuvtout.c:287]: (style) Unused variable: out_streaminfo
[yuvtout.c:288]: (style) Unused variable: frame_rate
[yuvtout.c:289]: (style) Unused variable: interlaced
[yuvtout.c:289]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtout.c:290]: (style) Unused variable: height
[yuvtout.c:83]: (style) The scope of the variable 'x' can be reduced
[yuvtshot.c:176]: (style) Variable 'sdpix' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'cw' is assigned a value that is never used
[yuvtshot.c:223]: (style) Unused variable: dif
[yuvtshot.c:223]: (style) Unused variable: difa
[yuvtshot.c:223]: (style) Unused variable: difb
[yuvtshot.c:223]: (style) Unused variable: diff
[yuvtshot.c:279]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvtshot.c:280]: (style) Unused variable: cw
[yuvtshot.c:280]: (style) Unused variable: w
[yuvtshot.c:280]: (style) Unused variable: x
[yuvtshot.c:280]: (style) Unused variable: y
[yuvtshot.c:280]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:280]: (style) Variable 'h' is assigned a value that is never used
[yuvtshot.c:370]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvtshot.c:374]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvtshot.c:375]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvtshot.c:377]: (style) Variable 'search' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'double_height' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'top_field' is assigned a value that is never used
[yuvvalues.c:239]: (style) Variable 'fdOut' is assigned a value that is never used
[yuvvalues.c:240]: (style) Unused variable: out_streaminfo
[yuvvalues.c:241]: (style) Unused variable: frame_rate
[yuvvalues.c:242]: (style) Unused variable: interlaced
[yuvvalues.c:242]: (style) Variable 'ilace' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvvalues.c:243]: (style) Unused variable: height
[yuvwater.c:307]: (style) The scope of the variable 'fdOut' can be reduced
[yuvwater.c:309]: (style) The scope of the variable 'brightness' can be reduced
[yuvyadif.c:134]: (style) Unused variable: x
[yuvyadif.c:303]: (style) Variable 'length' is assigned a value that is never used
[yuvyadif.c:306]: (style) Unused variable: out_streaminfo
[yuvyadif.c:307]: (style) Unused variable: frame_rate
[yuvyadif.c:308]: (style) Unused variable: interlaced
[yuvyadif.c:308]: (style) Variable 'ilace' is assigned a value that is never used
[yuvyadif.c:308]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvyadif.c:309]: (style) Unused variable: height
[yuvyadif.c:310]: (style) Unused variable: sigma
silicontrip commented 12 years ago

As this project is made up of a lot of separate small parts I'm going to focus on the code that is more relevant. Here is a status of the code; libav-bitrate.c: Fixed libav2yuv.c: I am refactoring this code completely using an OO model. libavmux.c: never worked. utilyuv.c: utility library, Fixed. vf_broadcast.c: needs changes to work with latest libav library vf_overlay.c: needs changes to work with latest libav library vf_watermark.c: needs changes to work with latest libav library yuv2jpeg.c: todo yuvGENERIC.c: template code yuvadjust.c: todo yuvafps.c: replaced by yuvaifps yuvaifps.c: todo yuvbilateral.c: todo yuvconvolve.c: todo yuvcrop.c: todo yuvdeinterlace.c: experimental yuvdeinterlaceB.c: experimental yuvdiag.c: fixed yuvdiff.c: todo yuvfade.c: limited use, may fix yuvfieldrev.c: todo yuvhsync.c: experimental yuvilace.c: experimental yuvnlmeans.c: experimental yuvpixelgraph.c: limited use, may fix yuvrfps.c: todo yuvsubtitle.c: todo yuvtbilateral.c: todo yuvtout.c: todo yuvtshot.c: replaced by yuvtout yuvvalues.c: todo yuvwater.c: todo yuvyadif.c: todo

Nikoli commented 12 years ago

Seems libav-bitrate.c is not fixed, check for commit 8f0bebd432ded91eff4b14777f6ab003b999e601

[libav2yuv.c:1022]: (style) Unused variable: y
[libav2yuv.c:1023]: (style) Unused variable: frame_data_size
[libav2yuv.c:115]: (style) Unused variable: le
[libav2yuv.c:115]: (style) Unused variable: off
[libav2yuv.c:1458]: (error) Memory leak: edllist
[libav2yuv.c:232]: (style) Unused variable: le
[libav2yuv.c:232]: (style) Unused variable: off
[libav2yuv.c:295]: (style) Variable 'max' is assigned a value that is never used
[libav2yuv.c:796]: (style) Variable 'r' is assigned a value that is never used
[libav2yuv.c:818]: (style) Unused variable: yuv_width
[libav2yuv.c:959]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses
[libav-bitrate.c:116]: (error) Memory leak: stream_size
[libavmux.c:268]: (error) Memory leak: pFormatCtx
[libavmux.c:60]: (style) Variable 'audio_bytes' is assigned a value that is never used
[libavmux.c:61]: (style) Variable 'video_bytes' is assigned a value that is never used
[vf_broadcast.c:168]: (style) The scope of the variable 'min' can be reduced
[vf_broadcast.c:169]: (style) The scope of the variable 'max' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'luma' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'i' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'j' can be reduced
[vf_broadcast.c:227] -> [vf_broadcast.c:198]: (style) Found duplicate if expressions.
[vf_broadcast.c:64]: (style) The scope of the variable 'argc' can be reduced
[vf_broadcast.c:67]: (style) The scope of the variable 'frames_args' can be reduced
[vf_overlay.c:179]: (style) Variable 'ovl' is assigned a value that is never used
[vf_overlay.c:28]: (style) Variable 'crop' is assigned a value that is never used
[vf_overlay.c:72]: (style) Variable 'pCodec' is not assigned a value
[vf_watermark.c:123]: (warning) scanf without field width limits can crash with huge input data.
[vf_watermark.c:152]: (error) Resource leak: fd
[vf_watermark.c:168]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:170]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:172]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:85]: (style) The scope of the variable 'argc' can be reduced
[yuv2jpeg.c:231]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'double_height' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'top_field' is assigned a value that is never used
[yuv2jpeg.c:234]: (style) Unused variable: out_streaminfo
[yuv2jpeg.c:235]: (style) Unused variable: frame_rate
[yuv2jpeg.c:236]: (style) Unused variable: interlaced
[yuv2jpeg.c:236]: (style) Variable 'ilace' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuv2jpeg.c:237]: (style) Unused variable: height
[yuv2jpeg.c:293]: (error) Memory leak: format_string
[yuvadjust.c:179]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvadjust.c:183]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvadjust.c:184]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvafps.c:267]: (style) Unused variable: edstf
[yuvafps.c:267]: (style) Unused variable: esrcf
[yuvafps.c:267]: (style) Unused variable: sdstf
[yuvafps.c:267]: (style) Unused variable: ssrcf
[yuvafps.c:268]: (style) Unused variable: odstf
[yuvafps.c:268]: (style) Unused variable: osrcf
[yuvafps.c:269]: (style) Variable 'h' is assigned a value that is never used
[yuvafps.c:269]: (style) Variable 'w' is assigned a value that is never used
[yuvaifps.c:145]: (style) Unused variable: c
[yuvaifps.c:344]: (style) Unused variable: de
[yuvaifps.c:344]: (style) Unused variable: se
[yuvaifps.c:397]: (style) Unused variable: edstf
[yuvaifps.c:397]: (style) Unused variable: esrcf
[yuvaifps.c:397]: (style) Unused variable: sdstf
[yuvaifps.c:397]: (style) Unused variable: ssrcf
[yuvaifps.c:398]: (style) Unused variable: odstf
[yuvaifps.c:398]: (style) Unused variable: osrcf
[yuvaifps.c:399]: (style) Variable 'h' is assigned a value that is never used
[yuvaifps.c:399]: (style) Variable 'w' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'double_height' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'top_field' is assigned a value that is never used
[yuvbilateral.c:254]: (style) Unused variable: out_streaminfo
[yuvbilateral.c:255]: (style) Unused variable: frame_rate
[yuvbilateral.c:256]: (style) Unused variable: interlaced
[yuvbilateral.c:256]: (style) Variable 'ilace' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvbilateral.c:257]: (style) Unused variable: height
[yuvbilateral.c:57]: (style) struct or union member 'parameters::kernelR' is never used
[yuvconvolve.c:107]: (style) Variable 'dim' is assigned a value that is never used
[yuvconvolve.c:158]: (style) Unused variable: uv_frame_data_size
[yuvconvolve.c:158]: (style) Unused variable: y_frame_data_size
[yuvconvolve.c:281]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvconvolve.c:285]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvconvolve.c:286]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvcrop.c:125]: (style) Variable 'cheight' is assigned a value that is never used
[yuvcrop.c:148]: (style) The scope of the variable 'bottom' can be reduced
[yuvcrop.c:148]: (style) The scope of the variable 'right' can be reduced
[yuvcrop.c:306]: (style) Variable 'cx' is assigned a value that is never used
[yuvcrop.c:425]: (style) Unused variable: colourarg
[yuvcrop.c:426]: (style) Unused variable: areaarg
[yuvcrop.c:456]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvcrop.c:461]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ch' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'w' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlaceB.c:230]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posn
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posp
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posn2
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posp2
[yuvdeinterlaceB.c:292]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:292]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlaceB.c:292]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos1
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos2
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos3
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos4
[yuvdeinterlaceB.c:372]: (style) Unused variable: hp
[yuvdeinterlaceB.c:373]: (style) Unused variable: ch
[yuvdeinterlaceB.c:373]: (style) Unused variable: cw
[yuvdeinterlaceB.c:376]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlaceB.c:538]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlaceB.c:680]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdeinterlaceB.c:94]: (style) Variable 'hp' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'w' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlaceB.c:98]: (style) Unused variable: ai
[yuvdeinterlaceB.c:98]: (style) Unused variable: ar
[yuvdeinterlaceB.c:98]: (style) Unused variable: di
[yuvdeinterlaceB.c:98]: (style) Unused variable: dr
[yuvdeinterlaceB.c:98]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlaceB.c:99]: (style) Unused variable: a
[yuvdeinterlaceB.c:99]: (style) Unused variable: d
[yuvdeinterlace.c:157]: (style) Variable 'mean' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlace.c:210]: (style) Unused variable: ai
[yuvdeinterlace.c:210]: (style) Unused variable: ar
[yuvdeinterlace.c:210]: (style) Unused variable: di
[yuvdeinterlace.c:210]: (style) Unused variable: dr
[yuvdeinterlace.c:210]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlace.c:211]: (style) Unused variable: a
[yuvdeinterlace.c:211]: (style) Unused variable: d
[yuvdeinterlace.c:365]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlace.c:365]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posn' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posp' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posn2' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posp2' can be reduced
[yuvdeinterlace.c:479]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:619]: (style) Unused variable: hp
[yuvdeinterlace.c:620]: (style) Unused variable: ch
[yuvdeinterlace.c:620]: (style) Unused variable: cw
[yuvdeinterlace.c:623]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlace.c:789]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlace.c:931]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdiag.c:736]: (style) Variable 'choice' is assigned a value that is never used
[yuvdiff.c:190]: (style) Unused variable: frame_data_size
[yuvdiff.c:194]: (style) Unused variable: ch
[yuvdiff.c:194]: (style) Unused variable: cw
[yuvdiff.c:194]: (style) Unused variable: h
[yuvdiff.c:194]: (style) Unused variable: w
[yuvdiff.c:194]: (style) Unused variable: x
[yuvdiff.c:195]: (style) Variable 'l' is assigned a value that is never used
[yuvdiff.c:400]: (style) Unused variable: compare_streaminfo
[yuvfade.c:168]: (style) Variable 'frame_rate' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'double_height' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'top_field' is assigned a value that is never used
[yuvfieldrev.c:128]: (style) Unused variable: frame_rate
[yuvfieldrev.c:129]: (style) Unused variable: interlaced
[yuvfieldrev.c:129]: (style) Variable 'ilace' is assigned a value that is never used
[yuvfieldrev.c:129]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvfieldrev.c:130]: (style) Unused variable: height
[yuvGENERIC.c:139]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'double_height' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'top_field' is assigned a value that is never used
[yuvGENERIC.c:142]: (style) Unused variable: out_streaminfo
[yuvGENERIC.c:143]: (style) Unused variable: frame_rate
[yuvGENERIC.c:144]: (style) Unused variable: interlaced
[yuvGENERIC.c:144]: (style) Variable 'ilace' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvGENERIC.c:145]: (style) Unused variable: height
[yuvhsync.c:187]: (style) Unused variable: uv_frame_data_size
[yuvhsync.c:187]: (style) Unused variable: y_frame_data_size
[yuvhsync.c:190]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvhsync.c:191]: (style) Unused variable: cw
[yuvhsync.c:191]: (style) Unused variable: w
[yuvhsync.c:191]: (style) Unused variable: x
[yuvhsync.c:191]: (style) Variable 'ch' is assigned a value that is never used
[yuvhsync.c:245]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvhsync.c:249]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvhsync.c:250]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:193]: (style) Unused variable: frame_data_size
[yuvilace.c:197]: (style) Variable 'f' is assigned a value that is never used
[yuvilace.c:197]: (style) Variable 'l' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'points' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'window' is assigned a value that is never used
[yuvilace.c:349]: (style) The scope of the variable 'drop_frames' can be reduced
[yuvilace.c:349]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvilace.c:353]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvilace.c:354]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:91]: (style) The scope of the variable 't' can be reduced
[yuvnlmeans.c:131]: (style) Variable 'Sxa' is assigned a value that is never used
[yuvnlmeans.c:137]: (style) Variable 'Axa' is assigned a value that is never used
[yuvnlmeans.c:727]: (style) Variable 'Syd' is assigned a value that is never used
[yuvnlmeans.c:729]: (style) Variable 'h2in' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'double_height' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'top_field' is assigned a value that is never used
[yuvnlmeans.c:934]: (style) Unused variable: out_streaminfo
[yuvnlmeans.c:935]: (style) Unused variable: frame_rate
[yuvnlmeans.c:936]: (style) Unused variable: interlaced
[yuvnlmeans.c:936]: (style) Variable 'ilace' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvnlmeans.c:937]: (style) Unused variable: height
[yuvpixelgraph.c:144]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'double_height' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'top_field' is assigned a value that is never used
[yuvpixelgraph.c:147]: (style) Unused variable: out_streaminfo
[yuvpixelgraph.c:148]: (style) Unused variable: frame_rate
[yuvpixelgraph.c:149]: (style) Unused variable: interlaced
[yuvpixelgraph.c:149]: (style) Variable 'ilace' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvpixelgraph.c:150]: (style) Unused variable: height
[yuvrfps.c:130]: (style) Variable 'src_frame_counter' is assigned a value that is never used
[yuvrfps.c:308]: (error) Memory leak: bri
[yuvrfps.c:308]: (error) Memory leak: bro
[yuvrfps.c:374]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:107]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:113]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'?
[yuvsubtitle.c:143]: (style) Unused variable: glyph_index
[yuvsubtitle.c:144]: (style) Variable 'pen_y' is assigned a value that is never used
[yuvsubtitle.c:145]: (style) Unused variable: special
[yuvsubtitle.c:147]: (style) Unused variable: w
[yuvsubtitle.c:147]: (style) Unused variable: x
[yuvsubtitle.c:147]: (style) Unused variable: y
[yuvsubtitle.c:147]: (style) Unused variable: z
[yuvsubtitle.c:227]: (style) Unused variable: glyph_index
[yuvsubtitle.c:228]: (style) Unused variable: x
[yuvsubtitle.c:228]: (style) Unused variable: y
[yuvsubtitle.c:229]: (style) Unused variable: error
[yuvsubtitle.c:231]: (style) Unused variable: bri
[yuvsubtitle.c:232]: (style) Unused variable: piu
[yuvsubtitle.c:232]: (style) Unused variable: piv
[yuvsubtitle.c:232]: (style) Unused variable: piy
[yuvsubtitle.c:235]: (style) Unused variable: special
[yuvsubtitle.c:429]: (style) Variable 'max' is assigned a value that is never used
[yuvsubtitle.c:481]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:512]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'double_height' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'top_field' is assigned a value that is never used
[yuvsubtitle.c:515]: (style) Unused variable: out_streaminfo
[yuvsubtitle.c:516]: (style) Unused variable: frame_rate
[yuvsubtitle.c:517]: (style) Unused variable: interlaced
[yuvsubtitle.c:517]: (style) Variable 'ilace' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvsubtitle.c:567]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:97]: (style) The scope of the variable 'special' can be reduced
[yuvtbilateral.c:118]: (style) Unused variable: y
[yuvtbilateral.c:343]: (error) Memory leak: yuv_data
[yuvtbilateral.c:352]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'double_height' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'top_field' is assigned a value that is never used
[yuvtbilateral.c:355]: (style) Unused variable: out_streaminfo
[yuvtbilateral.c:356]: (style) Unused variable: frame_rate
[yuvtbilateral.c:357]: (style) Unused variable: interlaced
[yuvtbilateral.c:357]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtbilateral.c:358]: (style) Unused variable: height
[yuvtbilateral.c:76]: (style) struct or union member 'parameters::kernelR' is never used
[yuvtbilateral.c:82]: (style) struct or union member 'parameters::direction' is never used
[yuvtout.c:109]: (style) The scope of the variable 'total' can be reduced
[yuvtout.c:110]: (style) The scope of the variable 'x' can be reduced
[yuvtout.c:110]: (style) Unused variable: y
[yuvtout.c:110]: (style) Unused variable: z
[yuvtout.c:218]: (style) Unused variable: c
[yuvtout.c:218]: (style) Unused variable: d
[yuvtout.c:284]: (style) Variable 'length' is assigned a value that is never used
[yuvtout.c:287]: (style) Unused variable: out_streaminfo
[yuvtout.c:288]: (style) Unused variable: frame_rate
[yuvtout.c:289]: (style) Unused variable: interlaced
[yuvtout.c:289]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtout.c:290]: (style) Unused variable: height
[yuvtout.c:83]: (style) The scope of the variable 'x' can be reduced
[yuvtshot.c:176]: (style) Variable 'sdpix' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'cw' is assigned a value that is never used
[yuvtshot.c:223]: (style) Unused variable: dif
[yuvtshot.c:223]: (style) Unused variable: difa
[yuvtshot.c:223]: (style) Unused variable: difb
[yuvtshot.c:223]: (style) Unused variable: diff
[yuvtshot.c:279]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvtshot.c:280]: (style) Unused variable: cw
[yuvtshot.c:280]: (style) Unused variable: w
[yuvtshot.c:280]: (style) Unused variable: x
[yuvtshot.c:280]: (style) Unused variable: y
[yuvtshot.c:280]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:280]: (style) Variable 'h' is assigned a value that is never used
[yuvtshot.c:370]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvtshot.c:374]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvtshot.c:375]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvtshot.c:377]: (style) Variable 'search' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'double_height' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'top_field' is assigned a value that is never used
[yuvvalues.c:239]: (style) Variable 'fdOut' is assigned a value that is never used
[yuvvalues.c:240]: (style) Unused variable: out_streaminfo
[yuvvalues.c:241]: (style) Unused variable: frame_rate
[yuvvalues.c:242]: (style) Unused variable: interlaced
[yuvvalues.c:242]: (style) Variable 'ilace' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvvalues.c:243]: (style) Unused variable: height
[yuvwater.c:307]: (style) The scope of the variable 'fdOut' can be reduced
[yuvwater.c:309]: (style) The scope of the variable 'brightness' can be reduced
[yuvyadif.c:134]: (style) Unused variable: x
[yuvyadif.c:303]: (style) Variable 'length' is assigned a value that is never used
[yuvyadif.c:306]: (style) Unused variable: out_streaminfo
[yuvyadif.c:307]: (style) Unused variable: frame_rate
[yuvyadif.c:308]: (style) Unused variable: interlaced
[yuvyadif.c:308]: (style) Variable 'ilace' is assigned a value that is never used
[yuvyadif.c:308]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvyadif.c:309]: (style) Unused variable: height
[yuvyadif.c:310]: (style) Unused variable: sigma
silicontrip commented 12 years ago

keeping me on my toes :-) I'll work my way through the rest of the code.

Nikoli commented 12 years ago

Now after commit 3611e59ebb06f9716cbc89402ba92d0321fef98d libav-bitrate.c has 3 memory leaks:

[libav2yuv.c:1022]: (style) Unused variable: y
[libav2yuv.c:1023]: (style) Unused variable: frame_data_size
[libav2yuv.c:115]: (style) Unused variable: le
[libav2yuv.c:115]: (style) Unused variable: off
[libav2yuv.c:1458]: (error) Memory leak: edllist
[libav2yuv.c:232]: (style) Unused variable: le
[libav2yuv.c:232]: (style) Unused variable: off
[libav2yuv.c:295]: (style) Variable 'max' is assigned a value that is never used
[libav2yuv.c:796]: (style) Variable 'r' is assigned a value that is never used
[libav2yuv.c:818]: (style) Unused variable: yuv_width
[libav2yuv.c:959]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses
[libav-bitrate.c:377]: (error) Memory leak: stream_ave
[libav-bitrate.c:377]: (error) Memory leak: stream_max
[libav-bitrate.c:377]: (error) Memory leak: stream_min
[libavmux.c:268]: (error) Memory leak: pFormatCtx
[libavmux.c:60]: (style) Variable 'audio_bytes' is assigned a value that is never used
[libavmux.c:61]: (style) Variable 'video_bytes' is assigned a value that is never used
[vf_broadcast.c:168]: (style) The scope of the variable 'min' can be reduced
[vf_broadcast.c:169]: (style) The scope of the variable 'max' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'luma' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'i' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'j' can be reduced
[vf_broadcast.c:227] -> [vf_broadcast.c:198]: (style) Found duplicate if expressions.
[vf_broadcast.c:64]: (style) The scope of the variable 'argc' can be reduced
[vf_broadcast.c:67]: (style) The scope of the variable 'frames_args' can be reduced
[vf_overlay.c:179]: (style) Variable 'ovl' is assigned a value that is never used
[vf_overlay.c:28]: (style) Variable 'crop' is assigned a value that is never used
[vf_overlay.c:72]: (style) Variable 'pCodec' is not assigned a value
[vf_watermark.c:123]: (warning) scanf without field width limits can crash with huge input data.
[vf_watermark.c:152]: (error) Resource leak: fd
[vf_watermark.c:168]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:170]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:172]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:85]: (style) The scope of the variable 'argc' can be reduced
[yuv2jpeg.c:231]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'double_height' is assigned a value that is never used
[yuv2jpeg.c:231]: (style) Variable 'top_field' is assigned a value that is never used
[yuv2jpeg.c:234]: (style) Unused variable: out_streaminfo
[yuv2jpeg.c:235]: (style) Unused variable: frame_rate
[yuv2jpeg.c:236]: (style) Unused variable: interlaced
[yuv2jpeg.c:236]: (style) Variable 'ilace' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuv2jpeg.c:236]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuv2jpeg.c:237]: (style) Unused variable: height
[yuv2jpeg.c:293]: (error) Memory leak: format_string
[yuvafps.c:267]: (style) Unused variable: edstf
[yuvafps.c:267]: (style) Unused variable: esrcf
[yuvafps.c:267]: (style) Unused variable: sdstf
[yuvafps.c:267]: (style) Unused variable: ssrcf
[yuvafps.c:268]: (style) Unused variable: odstf
[yuvafps.c:268]: (style) Unused variable: osrcf
[yuvafps.c:269]: (style) Variable 'h' is assigned a value that is never used
[yuvafps.c:269]: (style) Variable 'w' is assigned a value that is never used
[yuvaifps.c:145]: (style) Unused variable: c
[yuvaifps.c:344]: (style) Unused variable: de
[yuvaifps.c:344]: (style) Unused variable: se
[yuvaifps.c:397]: (style) Unused variable: edstf
[yuvaifps.c:397]: (style) Unused variable: esrcf
[yuvaifps.c:397]: (style) Unused variable: sdstf
[yuvaifps.c:397]: (style) Unused variable: ssrcf
[yuvaifps.c:398]: (style) Unused variable: odstf
[yuvaifps.c:398]: (style) Unused variable: osrcf
[yuvaifps.c:399]: (style) Variable 'h' is assigned a value that is never used
[yuvaifps.c:399]: (style) Variable 'w' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'double_height' is assigned a value that is never used
[yuvbilateral.c:251]: (style) Variable 'top_field' is assigned a value that is never used
[yuvbilateral.c:254]: (style) Unused variable: out_streaminfo
[yuvbilateral.c:255]: (style) Unused variable: frame_rate
[yuvbilateral.c:256]: (style) Unused variable: interlaced
[yuvbilateral.c:256]: (style) Variable 'ilace' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvbilateral.c:256]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvbilateral.c:257]: (style) Unused variable: height
[yuvbilateral.c:57]: (style) struct or union member 'parameters::kernelR' is never used
[yuvconvolve.c:107]: (style) Variable 'dim' is assigned a value that is never used
[yuvconvolve.c:158]: (style) Unused variable: uv_frame_data_size
[yuvconvolve.c:158]: (style) Unused variable: y_frame_data_size
[yuvconvolve.c:281]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvconvolve.c:285]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvconvolve.c:286]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvcrop.c:125]: (style) Variable 'cheight' is assigned a value that is never used
[yuvcrop.c:148]: (style) The scope of the variable 'bottom' can be reduced
[yuvcrop.c:148]: (style) The scope of the variable 'right' can be reduced
[yuvcrop.c:306]: (style) Variable 'cx' is assigned a value that is never used
[yuvcrop.c:425]: (style) Unused variable: colourarg
[yuvcrop.c:426]: (style) Unused variable: areaarg
[yuvcrop.c:456]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvcrop.c:461]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ch' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'w' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlaceB.c:230]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posn
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posp
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posn2
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posp2
[yuvdeinterlaceB.c:292]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:292]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlaceB.c:292]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos1
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos2
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos3
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos4
[yuvdeinterlaceB.c:372]: (style) Unused variable: hp
[yuvdeinterlaceB.c:373]: (style) Unused variable: ch
[yuvdeinterlaceB.c:373]: (style) Unused variable: cw
[yuvdeinterlaceB.c:376]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlaceB.c:538]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlaceB.c:680]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdeinterlaceB.c:94]: (style) Variable 'hp' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'w' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlaceB.c:98]: (style) Unused variable: ai
[yuvdeinterlaceB.c:98]: (style) Unused variable: ar
[yuvdeinterlaceB.c:98]: (style) Unused variable: di
[yuvdeinterlaceB.c:98]: (style) Unused variable: dr
[yuvdeinterlaceB.c:98]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlaceB.c:99]: (style) Unused variable: a
[yuvdeinterlaceB.c:99]: (style) Unused variable: d
[yuvdeinterlace.c:157]: (style) Variable 'mean' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlace.c:208]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlace.c:210]: (style) Unused variable: ai
[yuvdeinterlace.c:210]: (style) Unused variable: ar
[yuvdeinterlace.c:210]: (style) Unused variable: di
[yuvdeinterlace.c:210]: (style) Unused variable: dr
[yuvdeinterlace.c:210]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlace.c:211]: (style) Unused variable: a
[yuvdeinterlace.c:211]: (style) Unused variable: d
[yuvdeinterlace.c:365]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychr' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlace.c:365]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlace.c:365]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlace.c:366]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlace.c:367]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posn' can be reduced
[yuvdeinterlace.c:368]: (style) The scope of the variable 'chroma_posp' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posn2' can be reduced
[yuvdeinterlace.c:369]: (style) The scope of the variable 'chroma_posp2' can be reduced
[yuvdeinterlace.c:479]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlace.c:619]: (style) Unused variable: hp
[yuvdeinterlace.c:620]: (style) Unused variable: ch
[yuvdeinterlace.c:620]: (style) Unused variable: cw
[yuvdeinterlace.c:623]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlace.c:789]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlace.c:931]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdiag.c:736]: (style) Variable 'choice' is assigned a value that is never used
[yuvdiff.c:190]: (style) Unused variable: frame_data_size
[yuvdiff.c:194]: (style) Unused variable: ch
[yuvdiff.c:194]: (style) Unused variable: cw
[yuvdiff.c:194]: (style) Unused variable: h
[yuvdiff.c:194]: (style) Unused variable: w
[yuvdiff.c:194]: (style) Unused variable: x
[yuvdiff.c:195]: (style) Variable 'l' is assigned a value that is never used
[yuvdiff.c:400]: (style) Unused variable: compare_streaminfo
[yuvfade.c:168]: (style) Variable 'frame_rate' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'double_height' is assigned a value that is never used
[yuvfieldrev.c:124]: (style) Variable 'top_field' is assigned a value that is never used
[yuvfieldrev.c:128]: (style) Unused variable: frame_rate
[yuvfieldrev.c:129]: (style) Unused variable: interlaced
[yuvfieldrev.c:129]: (style) Variable 'ilace' is assigned a value that is never used
[yuvfieldrev.c:129]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvfieldrev.c:130]: (style) Unused variable: height
[yuvGENERIC.c:139]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'double_height' is assigned a value that is never used
[yuvGENERIC.c:139]: (style) Variable 'top_field' is assigned a value that is never used
[yuvGENERIC.c:142]: (style) Unused variable: out_streaminfo
[yuvGENERIC.c:143]: (style) Unused variable: frame_rate
[yuvGENERIC.c:144]: (style) Unused variable: interlaced
[yuvGENERIC.c:144]: (style) Variable 'ilace' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvGENERIC.c:144]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvGENERIC.c:145]: (style) Unused variable: height
[yuvhsync.c:187]: (style) Unused variable: uv_frame_data_size
[yuvhsync.c:187]: (style) Unused variable: y_frame_data_size
[yuvhsync.c:190]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvhsync.c:191]: (style) Unused variable: cw
[yuvhsync.c:191]: (style) Unused variable: w
[yuvhsync.c:191]: (style) Unused variable: x
[yuvhsync.c:191]: (style) Variable 'ch' is assigned a value that is never used
[yuvhsync.c:245]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvhsync.c:249]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvhsync.c:250]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:193]: (style) Unused variable: frame_data_size
[yuvilace.c:197]: (style) Variable 'f' is assigned a value that is never used
[yuvilace.c:197]: (style) Variable 'l' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'points' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'window' is assigned a value that is never used
[yuvilace.c:349]: (style) The scope of the variable 'drop_frames' can be reduced
[yuvilace.c:349]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvilace.c:353]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvilace.c:354]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:91]: (style) The scope of the variable 't' can be reduced
[yuvnlmeans.c:131]: (style) Variable 'Sxa' is assigned a value that is never used
[yuvnlmeans.c:137]: (style) Variable 'Axa' is assigned a value that is never used
[yuvnlmeans.c:727]: (style) Variable 'Syd' is assigned a value that is never used
[yuvnlmeans.c:729]: (style) Variable 'h2in' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'double_height' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'top_field' is assigned a value that is never used
[yuvnlmeans.c:934]: (style) Unused variable: out_streaminfo
[yuvnlmeans.c:935]: (style) Unused variable: frame_rate
[yuvnlmeans.c:936]: (style) Unused variable: interlaced
[yuvnlmeans.c:936]: (style) Variable 'ilace' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvnlmeans.c:937]: (style) Unused variable: height
[yuvpixelgraph.c:144]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'double_height' is assigned a value that is never used
[yuvpixelgraph.c:144]: (style) Variable 'top_field' is assigned a value that is never used
[yuvpixelgraph.c:147]: (style) Unused variable: out_streaminfo
[yuvpixelgraph.c:148]: (style) Unused variable: frame_rate
[yuvpixelgraph.c:149]: (style) Unused variable: interlaced
[yuvpixelgraph.c:149]: (style) Variable 'ilace' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvpixelgraph.c:149]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvpixelgraph.c:150]: (style) Unused variable: height
[yuvrfps.c:130]: (style) Variable 'src_frame_counter' is assigned a value that is never used
[yuvrfps.c:308]: (error) Memory leak: bri
[yuvrfps.c:308]: (error) Memory leak: bro
[yuvrfps.c:374]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:107]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:113]: (warning) Ineffective statement similar to '*A++;'. Did you intend to write '(*A)++;'?
[yuvsubtitle.c:143]: (style) Unused variable: glyph_index
[yuvsubtitle.c:144]: (style) Variable 'pen_y' is assigned a value that is never used
[yuvsubtitle.c:145]: (style) Unused variable: special
[yuvsubtitle.c:147]: (style) Unused variable: w
[yuvsubtitle.c:147]: (style) Unused variable: x
[yuvsubtitle.c:147]: (style) Unused variable: y
[yuvsubtitle.c:147]: (style) Unused variable: z
[yuvsubtitle.c:227]: (style) Unused variable: glyph_index
[yuvsubtitle.c:228]: (style) Unused variable: x
[yuvsubtitle.c:228]: (style) Unused variable: y
[yuvsubtitle.c:229]: (style) Unused variable: error
[yuvsubtitle.c:231]: (style) Unused variable: bri
[yuvsubtitle.c:232]: (style) Unused variable: piu
[yuvsubtitle.c:232]: (style) Unused variable: piv
[yuvsubtitle.c:232]: (style) Unused variable: piy
[yuvsubtitle.c:235]: (style) Unused variable: special
[yuvsubtitle.c:429]: (style) Variable 'max' is assigned a value that is never used
[yuvsubtitle.c:481]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:512]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'double_height' is assigned a value that is never used
[yuvsubtitle.c:512]: (style) Variable 'top_field' is assigned a value that is never used
[yuvsubtitle.c:515]: (style) Unused variable: out_streaminfo
[yuvsubtitle.c:516]: (style) Unused variable: frame_rate
[yuvsubtitle.c:517]: (style) Unused variable: interlaced
[yuvsubtitle.c:517]: (style) Variable 'ilace' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvsubtitle.c:517]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvsubtitle.c:567]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:97]: (style) The scope of the variable 'special' can be reduced
[yuvtbilateral.c:118]: (style) Unused variable: y
[yuvtbilateral.c:343]: (error) Memory leak: yuv_data
[yuvtbilateral.c:352]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'double_height' is assigned a value that is never used
[yuvtbilateral.c:352]: (style) Variable 'top_field' is assigned a value that is never used
[yuvtbilateral.c:355]: (style) Unused variable: out_streaminfo
[yuvtbilateral.c:356]: (style) Unused variable: frame_rate
[yuvtbilateral.c:357]: (style) Unused variable: interlaced
[yuvtbilateral.c:357]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtbilateral.c:357]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtbilateral.c:358]: (style) Unused variable: height
[yuvtbilateral.c:76]: (style) struct or union member 'parameters::kernelR' is never used
[yuvtbilateral.c:82]: (style) struct or union member 'parameters::direction' is never used
[yuvtout.c:109]: (style) The scope of the variable 'total' can be reduced
[yuvtout.c:110]: (style) The scope of the variable 'x' can be reduced
[yuvtout.c:110]: (style) Unused variable: y
[yuvtout.c:110]: (style) Unused variable: z
[yuvtout.c:218]: (style) Unused variable: c
[yuvtout.c:218]: (style) Unused variable: d
[yuvtout.c:284]: (style) Variable 'length' is assigned a value that is never used
[yuvtout.c:287]: (style) Unused variable: out_streaminfo
[yuvtout.c:288]: (style) Unused variable: frame_rate
[yuvtout.c:289]: (style) Unused variable: interlaced
[yuvtout.c:289]: (style) Variable 'ilace' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvtout.c:289]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvtout.c:290]: (style) Unused variable: height
[yuvtout.c:83]: (style) The scope of the variable 'x' can be reduced
[yuvtshot.c:176]: (style) Variable 'sdpix' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:221]: (style) Variable 'cw' is assigned a value that is never used
[yuvtshot.c:223]: (style) Unused variable: dif
[yuvtshot.c:223]: (style) Unused variable: difa
[yuvtshot.c:223]: (style) Unused variable: difb
[yuvtshot.c:223]: (style) Unused variable: diff
[yuvtshot.c:279]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvtshot.c:280]: (style) Unused variable: cw
[yuvtshot.c:280]: (style) Unused variable: w
[yuvtshot.c:280]: (style) Unused variable: x
[yuvtshot.c:280]: (style) Unused variable: y
[yuvtshot.c:280]: (style) Variable 'ch' is assigned a value that is never used
[yuvtshot.c:280]: (style) Variable 'h' is assigned a value that is never used
[yuvtshot.c:370]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvtshot.c:374]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvtshot.c:375]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvtshot.c:377]: (style) Variable 'search' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'double_height' is assigned a value that is never used
[yuvvalues.c:237]: (style) Variable 'top_field' is assigned a value that is never used
[yuvvalues.c:239]: (style) Variable 'fdOut' is assigned a value that is never used
[yuvvalues.c:240]: (style) Unused variable: out_streaminfo
[yuvvalues.c:241]: (style) Unused variable: frame_rate
[yuvvalues.c:242]: (style) Unused variable: interlaced
[yuvvalues.c:242]: (style) Variable 'ilace' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvvalues.c:242]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvvalues.c:243]: (style) Unused variable: height
[yuvwater.c:307]: (style) The scope of the variable 'fdOut' can be reduced
[yuvwater.c:309]: (style) The scope of the variable 'brightness' can be reduced
[yuvyadif.c:134]: (style) Unused variable: x
[yuvyadif.c:303]: (style) Variable 'length' is assigned a value that is never used
[yuvyadif.c:306]: (style) Unused variable: out_streaminfo
[yuvyadif.c:307]: (style) Unused variable: frame_rate
[yuvyadif.c:308]: (style) Unused variable: interlaced
[yuvyadif.c:308]: (style) Variable 'ilace' is assigned a value that is never used
[yuvyadif.c:308]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvyadif.c:309]: (style) Unused variable: height
[yuvyadif.c:310]: (style) Unused variable: sigma
Nikoli commented 12 years ago

Current output, 134 instead of 379 lines:

[libavmux.c:268]: (error) Memory leak: pFormatCtx
[libavmux.c:60]: (style) Variable 'audio_bytes' is assigned a value that is never used
[libavmux.c:61]: (style) Variable 'video_bytes' is assigned a value that is never used
[vf_broadcast.c:168]: (style) The scope of the variable 'min' can be reduced
[vf_broadcast.c:169]: (style) The scope of the variable 'max' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'chromab' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'chromar' can be reduced
[vf_broadcast.c:170]: (style) The scope of the variable 'luma' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'i' can be reduced
[vf_broadcast.c:171]: (style) The scope of the variable 'j' can be reduced
[vf_broadcast.c:281] -> [vf_broadcast.c:203]: (style) Found duplicate if expressions.
[vf_broadcast.c:64]: (style) The scope of the variable 'argc' can be reduced
[vf_broadcast.c:67]: (style) The scope of the variable 'frames_args' can be reduced
[vf_overlay.c:179]: (style) Variable 'ovl' is assigned a value that is never used
[vf_overlay.c:28]: (style) Variable 'crop' is assigned a value that is never used
[vf_overlay.c:72]: (style) Variable 'pCodec' is not assigned a value
[vf_watermark.c:123]: (warning) scanf without field width limits can crash with huge input data.
[vf_watermark.c:152]: (error) Resource leak: fd
[vf_watermark.c:168]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:170]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:172]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[vf_watermark.c:85]: (style) The scope of the variable 'argc' can be reduced
[yuv2jpeg.c:232]: (style) Variable 'fdOut' is assigned a value that is never used
[yuvafps.c:267]: (style) Unused variable: edstf
[yuvafps.c:267]: (style) Unused variable: esrcf
[yuvafps.c:267]: (style) Unused variable: sdstf
[yuvafps.c:267]: (style) Unused variable: ssrcf
[yuvafps.c:268]: (style) Unused variable: odstf
[yuvafps.c:268]: (style) Unused variable: osrcf
[yuvafps.c:269]: (style) Variable 'h' is assigned a value that is never used
[yuvafps.c:269]: (style) Variable 'w' is assigned a value that is never used
[yuvaifps.c:145]: (style) Unused variable: c
[yuvaifps.c:344]: (style) Unused variable: de
[yuvaifps.c:344]: (style) Unused variable: se
[yuvaifps.c:397]: (style) Unused variable: edstf
[yuvaifps.c:397]: (style) Unused variable: esrcf
[yuvaifps.c:397]: (style) Unused variable: sdstf
[yuvaifps.c:397]: (style) Unused variable: ssrcf
[yuvaifps.c:398]: (style) Unused variable: odstf
[yuvaifps.c:398]: (style) Unused variable: osrcf
[yuvaifps.c:399]: (style) Variable 'h' is assigned a value that is never used
[yuvaifps.c:399]: (style) Variable 'w' is assigned a value that is never used
[yuvbilateral.c:52]: (style) struct or union member 'parameters::kernelR' is never used
[yuvcrop.c:401]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvcrop.c:406]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ch' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'chr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'cwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'w' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'xcwr' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrcw' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrn' can be reduced
[yuvdeinterlaceB.c:230]: (style) The scope of the variable 'ychrp' can be reduced
[yuvdeinterlaceB.c:230]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrn2' can be reduced
[yuvdeinterlaceB.c:231]: (style) The scope of the variable 'ychrp2' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromu' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tchromv' can be reduced
[yuvdeinterlaceB.c:232]: (style) The scope of the variable 'tluma' can be reduced
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posn
[yuvdeinterlaceB.c:233]: (style) Unused variable: chroma_posp
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posn2
[yuvdeinterlaceB.c:234]: (style) Unused variable: chroma_posp2
[yuvdeinterlaceB.c:292]: (style) Unused variable: ychr
[yuvdeinterlaceB.c:292]: (style) Variable 'ch' is assigned a value that is never used
[yuvdeinterlaceB.c:292]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos1
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos2
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos3
[yuvdeinterlaceB.c:295]: (style) Unused variable: chroma_pos4
[yuvdeinterlaceB.c:372]: (style) Unused variable: hp
[yuvdeinterlaceB.c:373]: (style) Unused variable: ch
[yuvdeinterlaceB.c:373]: (style) Unused variable: cw
[yuvdeinterlaceB.c:376]: (style) Variable 'luma' is assigned a value that is never used
[yuvdeinterlaceB.c:538]: (style) Variable 'frame_data_size' is assigned a value that is never used
[yuvdeinterlaceB.c:680]: (style) Variable 'fullframe' is assigned a value that is never used
[yuvdeinterlaceB.c:94]: (style) Variable 'hp' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'h' is assigned a value that is never used
[yuvdeinterlaceB.c:95]: (style) Variable 'w' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'hfd' is assigned a value that is never used
[yuvdeinterlaceB.c:96]: (style) Variable 'lfd' is assigned a value that is never used
[yuvdeinterlaceB.c:98]: (style) Unused variable: ai
[yuvdeinterlaceB.c:98]: (style) Unused variable: ar
[yuvdeinterlaceB.c:98]: (style) Unused variable: di
[yuvdeinterlaceB.c:98]: (style) Unused variable: dr
[yuvdeinterlaceB.c:98]: (style) Variable 'ci' is assigned a value that is never used
[yuvdeinterlaceB.c:99]: (style) Unused variable: a
[yuvdeinterlaceB.c:99]: (style) Unused variable: d
[yuvGENERIC.c:139]: (style) Unused variable: frame_rate
[yuvGENERIC.c:140]: (style) Unused variable: interlaced
[yuvGENERIC.c:140]: (style) Variable 'ilace' is assigned a value that is never used
[yuvGENERIC.c:140]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvGENERIC.c:140]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvhsync.c:187]: (style) Unused variable: uv_frame_data_size
[yuvhsync.c:187]: (style) Unused variable: y_frame_data_size
[yuvhsync.c:190]: (style) Variable 'src_frame_counter' is not assigned a value
[yuvhsync.c:191]: (style) Unused variable: cw
[yuvhsync.c:191]: (style) Unused variable: w
[yuvhsync.c:191]: (style) Unused variable: x
[yuvhsync.c:191]: (style) Variable 'ch' is assigned a value that is never used
[yuvhsync.c:245]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvhsync.c:249]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvhsync.c:250]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:193]: (style) Unused variable: frame_data_size
[yuvilace.c:197]: (style) Variable 'f' is assigned a value that is never used
[yuvilace.c:197]: (style) Variable 'l' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'points' is assigned a value that is never used
[yuvilace.c:199]: (style) Variable 'window' is assigned a value that is never used
[yuvilace.c:349]: (style) The scope of the variable 'drop_frames' can be reduced
[yuvilace.c:349]: (style) Variable 'drop_frames' is assigned a value that is never used
[yuvilace.c:353]: (style) Variable 'src_interlacing' is assigned a value that is never used
[yuvilace.c:354]: (style) Variable 'src_frame_rate' is assigned a value that is never used
[yuvilace.c:91]: (style) The scope of the variable 't' can be reduced
[yuvnlmeans.c:131]: (style) Variable 'Sxa' is assigned a value that is never used
[yuvnlmeans.c:137]: (style) Variable 'Axa' is assigned a value that is never used
[yuvnlmeans.c:727]: (style) Variable 'Syd' is assigned a value that is never used
[yuvnlmeans.c:729]: (style) Variable 'h2in' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'bottom_field' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'double_height' is assigned a value that is never used
[yuvnlmeans.c:931]: (style) Variable 'top_field' is assigned a value that is never used
[yuvnlmeans.c:934]: (style) Unused variable: out_streaminfo
[yuvnlmeans.c:935]: (style) Unused variable: frame_rate
[yuvnlmeans.c:936]: (style) Unused variable: interlaced
[yuvnlmeans.c:936]: (style) Variable 'ilace' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'pro_chroma' is assigned a value that is never used
[yuvnlmeans.c:936]: (style) Variable 'yuv_interlacing' is assigned a value that is never used
[yuvnlmeans.c:937]: (style) Unused variable: height
[yuvrfps.c:372]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:104]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:468]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvsubtitle.c:552]: (portability) scanf without field width limits can crash with huge input data on some versions of libc.
[yuvtbilateral.c:73]: (style) struct or union member 'parameters::kernelR' is never used
[yuvtbilateral.c:79]: (style) struct or union member 'parameters::direction' is never used
silicontrip commented 11 years ago

I've run cppcheck myself. The only issues that remain are in code that needs major overhaul to function properly. I'm not working on this code currently.