aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-04-28 10:38:28 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-28 16:31:05 +0100
commit59dfc2b0c89f35c5805abee72c2ae4ee7af8e98d (patch)
treee7e9c5eda81a852f8e1990e2e51fa4ae01cda3d6
parentc3418201307c6b7a2b3e3be10f33ab4a20a32c3b (diff)
downloadffmpeg-59dfc2b0c89f35c5805abee72c2ae4ee7af8e98d.tar.gz
h263: Drop commented-out code and a related otherwise unused function
-rw-r--r--libavcodec/h263.h7
-rw-r--r--libavcodec/mpeg4video.c10
2 files changed, 0 insertions, 17 deletions
diff --git a/libavcodec/h263.h b/libavcodec/h263.h
index c5e30205bf..1e49100485 100644
--- a/libavcodec/h263.h
+++ b/libavcodec/h263.h
@@ -211,11 +211,4 @@ static inline int get_p_cbp(MpegEncContext * s,
return cbp;
}
-static inline void memsetw(short *tab, int val, int n)
-{
- int i;
- for(i=0;i<n;i++)
- tab[i] = val;
-}
-
#endif /* AVCODEC_H263_H */
diff --git a/libavcodec/mpeg4video.c b/libavcodec/mpeg4video.c
index 84fa26b7a5..e37aafab38 100644
--- a/libavcodec/mpeg4video.c
+++ b/libavcodec/mpeg4video.c
@@ -51,13 +51,6 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s)
c_wrap = s->mb_stride;
c_xy = (s->mb_y - 1) * c_wrap + s->mb_x - 1;
-#if 0
- /* clean DC */
- memsetw(s->dc_val[0] + l_xy, 1024, l_wrap * 2 + 1);
- memsetw(s->dc_val[1] + c_xy, 1024, c_wrap + 1);
- memsetw(s->dc_val[2] + c_xy, 1024, c_wrap + 1);
-#endif
-
/* clean AC */
memset(s->ac_val[0] + l_xy, 0, (l_wrap * 2 + 1) * 16 * sizeof(int16_t));
memset(s->ac_val[1] + c_xy, 0, (c_wrap + 1) * 16 * sizeof(int16_t));
@@ -65,9 +58,6 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s)
/* clean MV */
// we can't clear the MVs as they might be needed by a b frame
-// memset(s->motion_val + l_xy, 0, (l_wrap * 2 + 1) * 2 * sizeof(int16_t));
-// memset(s->motion_val, 0, 2 * sizeof(int16_t) * (2 + s->mb_width * 2) *
-// (2 + s->mb_height * 2));
s->last_mv[0][0][0] =
s->last_mv[0][0][1] =
s->last_mv[1][0][0] =