Changeset c9dc6637 in ffmpeg


Ignore:
Timestamp:
Dec 18, 2011, 12:20:18 AM (13 years ago)
Author:
Michael Niedermayer <michaelni@gmx.at>
Branches:
master
Children:
53509d20
Parents:
bd35dfea
git-author:
Michael Niedermayer <michaelni@gmx.at> (12/17/11 23:55:21)
git-committer:
Michael Niedermayer <michaelni@gmx.at> (12/18/11 00:20:18)
Message:

v210enc: 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/v210enc.c

    rbd35dfea rc9dc6637  
    9191            if (w == avctx->width - 2)
    9292                bytestream_put_le32(&p, val);
    93         }
    94         if (w < avctx->width - 3) {
    95             val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
    96             bytestream_put_le32(&p, val);
     93            if (w < avctx->width - 3) {
     94                val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);
     95                bytestream_put_le32(&p, val);
    9796
    98             val = CLIP(*v++) | (CLIP(*y++) << 10);
    99             bytestream_put_le32(&p, val);
     97                val = CLIP(*v++) | (CLIP(*y++) << 10);
     98                bytestream_put_le32(&p, val);
     99            }
    100100        }
    101101
Note: See TracChangeset for help on using the changeset viewer.