Changeset 53509d20 in ffmpeg


Ignore:
Timestamp:
Dec 18, 2011, 12:20:18 AM (13 years ago)
Author:
Michael Niedermayer <michaelni@gmx.at>
Branches:
master
Children:
1a2484fc
Parents:
c9dc6637
git-author:
Michael Niedermayer <michaelni@gmx.at> (12/18/11 00:06:07)
git-committer:
Michael Niedermayer <michaelni@gmx.at> (12/18/11 00:20:18)
Message:

v210dec: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavcodec/v210dec.c

    rc9dc6637 r53509d20  
    127127            val  = av_le2ne32(*src++);
    128128            *y++ =  val & 0x3FF;
    129         }
    130         if (w < avctx->width - 3) {
    131             *u++ = (val >> 10) & 0x3FF;
    132             *y++ = (val >> 20) & 0x3FF;
     129            if (w < avctx->width - 3) {
     130                *u++ = (val >> 10) & 0x3FF;
     131                *y++ = (val >> 20) & 0x3FF;
    133132
    134             val  = av_le2ne32(*src++);
    135             *v++ =  val & 0x3FF;
    136             *y++ = (val >> 10) & 0x3FF;
     133                val  = av_le2ne32(*src++);
     134                *v++ =  val & 0x3FF;
     135                *y++ = (val >> 10) & 0x3FF;
     136            }
    137137        }
    138138
Note: See TracChangeset for help on using the changeset viewer.