mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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>
This commit is contained in:
parent
55c5a38369
commit
ef23bd939d
@ -1636,7 +1636,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
|
|||||||
|
|
||||||
MvField *tab_mvf = s->ref->tab_mvf;
|
MvField *tab_mvf = s->ref->tab_mvf;
|
||||||
RefPicList *refPicList = s->ref->refPicList;
|
RefPicList *refPicList = s->ref->refPicList;
|
||||||
HEVCFrame *ref0, *ref1;
|
HEVCFrame *ref0 = NULL, *ref1 = NULL;
|
||||||
uint8_t *dst0 = POS(0, x0, y0);
|
uint8_t *dst0 = POS(0, x0, y0);
|
||||||
uint8_t *dst1 = POS(1, x0, y0);
|
uint8_t *dst1 = POS(1, x0, y0);
|
||||||
uint8_t *dst2 = POS(2, x0, y0);
|
uint8_t *dst2 = POS(2, x0, y0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user