[FFmpeg-devel] avcodec/fmvc: find Uninitialized variables for Coverity

Submitted by Steven Liu on Feb. 12, 2017, 11:43 p.m.

Details

Message ID 20170212234353.32433-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Feb. 12, 2017, 11:43 p.m.
Initialized variables opcode to indent

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavcodec/fmvc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Liu Feb. 13, 2017, 1:39 a.m.
2017-02-13 7:43 GMT+08:00 Steven Liu <lq@chinaffmpeg.org>:

> Initialized variables opcode to indent
>
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
>  libavcodec/fmvc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c
> index 54bb6f9..5e54d33 100644
> --- a/libavcodec/fmvc.c
> +++ b/libavcodec/fmvc.c
> @@ -53,7 +53,7 @@ typedef struct FMVCContext {
>
>  static int decode_type2(GetByteContext *gb, PutByteContext *pb)
>  {
> -    unsigned repeat = 0, first = 1, opcode;
> +    unsigned repeat = 0, first = 1, opcode = 0;
>      int i, len, pos;
>
>      while (bytestream2_get_bytes_left(gb) > 0) {
> --
> 2.10.1.382.ga23ca1b.dirty
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


Just fix 1400455

Patch hide | download patch | download mbox

diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c
index 54bb6f9..5e54d33 100644
--- a/libavcodec/fmvc.c
+++ b/libavcodec/fmvc.c
@@ -53,7 +53,7 @@  typedef struct FMVCContext {
 
 static int decode_type2(GetByteContext *gb, PutByteContext *pb)
 {
-    unsigned repeat = 0, first = 1, opcode;
+    unsigned repeat = 0, first = 1, opcode = 0;
     int i, len, pos;
 
     while (bytestream2_get_bytes_left(gb) > 0) {