diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-11 02:58:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-11 04:17:43 +0100 |
commit | ef23bd939d955f53bc58696bbb68960784066894 (patch) | |
tree | f28125e8c70885f0c9be4e25265d1eaa5f1dde67 /libavcodec/hevc.c | |
parent | 55c5a38369c1a84ed8b7ba1cb89ad1020e1bc540 (diff) | |
download | ffmpeg-ef23bd939d955f53bc58696bbb68960784066894.tar.gz |
avcodec/hevc: Silence "warning: ref0/1 may be used uninitialized in this function"
Also make code more robust by initializing the pointers to NULL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index d4dc52c9dd..9a6d0b3c35 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1636,7 +1636,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, MvField *tab_mvf = s->ref->tab_mvf; RefPicList *refPicList = s->ref->refPicList; - HEVCFrame *ref0, *ref1; + HEVCFrame *ref0 = NULL, *ref1 = NULL; uint8_t *dst0 = POS(0, x0, y0); uint8_t *dst1 = POS(1, x0, y0); uint8_t *dst2 = POS(2, x0, y0); |