diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-11-16 08:23:19 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-11-17 09:26:45 +0100 |
commit | 8b573ddda75980f724f779ff75aacc2ff81d9e0e (patch) | |
tree | 32a9caf9b5af882628438ed6f778dfec4eb33fa6 /libavcodec | |
parent | eac3ac1fe0774b65316852616b2672702dbc3f31 (diff) | |
download | ffmpeg-8b573ddda75980f724f779ff75aacc2ff81d9e0e.tar.gz |
hevc: remove superfluous assignments and checks
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 539112b700..3dcbe607dd 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1766,9 +1766,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, DECLARE_ALIGNED(16, int16_t, tmp [MAX_PB_SIZE * MAX_PB_SIZE]); DECLARE_ALIGNED(16, int16_t, tmp2[MAX_PB_SIZE * MAX_PB_SIZE]); - if (!ref1) - return; - luma_mc(s, tmp, tmpstride, ref1->frame, ¤t_mv.mv[1], x0, y0, nPbW, nPbH); @@ -1805,11 +1802,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, DECLARE_ALIGNED(16, int16_t, tmp2[MAX_PB_SIZE * MAX_PB_SIZE]); DECLARE_ALIGNED(16, int16_t, tmp3[MAX_PB_SIZE * MAX_PB_SIZE]); DECLARE_ALIGNED(16, int16_t, tmp4[MAX_PB_SIZE * MAX_PB_SIZE]); - HEVCFrame *ref0 = refPicList[0].ref[current_mv.ref_idx[0]]; - HEVCFrame *ref1 = refPicList[1].ref[current_mv.ref_idx[1]]; - - if (!ref0 || !ref1) - return; luma_mc(s, tmp, tmpstride, ref0->frame, ¤t_mv.mv[0], x0, y0, nPbW, nPbH); |