[FFmpeg-trac] #5102(avcodec:new): Variables used uninitialized in libavcodec/ffv1enc.c

FFmpeg trac at avcodec.org
Tue Dec 22 05:41:59 CET 2015


#5102: Variables used uninitialized in libavcodec/ffv1enc.c
---------------------------------------+---------------------------------
               Reporter:  jeremyhu     |                  Owner:
                   Type:  defect       |                 Status:  new
               Priority:  normal       |              Component:  avcodec
                Version:  unspecified  |               Keywords:
             Blocked By:               |               Blocking:
Reproduced by developer:  0            |  Analyzed by developer:  0
---------------------------------------+---------------------------------
 The following were observed when building N-77414-g484cc66 and should
 probably be fixed:

 {{{
 libavcodec/ffv1enc.c:434:17: warning: variable 'a' is used uninitialized
 whenever 'if' condition is false [-Wsometimes-uninitialized]
             if (lbd) {
                 ^~~
 libavcodec/ffv1enc.c:457:31: note: uninitialized use occurs here
             sample[3][0][x] = a;
                               ^
 libavcodec/ffv1enc.c:434:13: note: remove the 'if' if its condition is
 always true
             if (lbd) {
             ^~~~~~~~~
 libavcodec/ffv1enc.c:433:13: note: variable 'a' is declared here
             int b, g, r, av_uninit(a);
             ^
 }}}

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


More information about the FFmpeg-trac mailing list