[FFmpeg-cvslog] avcodec/vp9: remove some reset-to-zero from vp9_decode_free().

Clément Bœsch git at videolan.org
Sat Nov 16 22:34:28 CET 2013


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Nov 16 21:22:06 2013 +0100| [c20a7ce62d02d29e5222595c76b0a2563c9348b4] | committer: Clément Bœsch

avcodec/vp9: remove some reset-to-zero from vp9_decode_free().

Those should not be necessary.

Original change by one of these developers:
    Anton Khirnov <anton at khirnov.net>
    Diego Biurrun <diego at biurrun.de>
    Luca Barbato <lu_zero at gentoo.org>
    Martin Storsjö <martin at martin.st>

See 97962b2 / 72ca830

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c20a7ce62d02d29e5222595c76b0a2563c9348b4
---

 libavcodec/vp9.c |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index e2cb388..745bbd6 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -3560,17 +3560,7 @@ static av_cold int vp9_decode_free(AVCodecContext *ctx)
         av_frame_free(&s->fb[i]);
     }
     av_freep(&s->above_partition_ctx);
-    s->above_skip_ctx = s->above_txfm_ctx = s->above_mode_ctx = NULL;
-    s->above_y_nnz_ctx = s->above_uv_nnz_ctx[0] = s->above_uv_nnz_ctx[1] = NULL;
-    s->intra_pred_data[0] = s->intra_pred_data[1] = s->intra_pred_data[2] = NULL;
-    s->above_segpred_ctx = s->above_intra_ctx = s->above_comp_ctx = NULL;
-    s->above_ref_ctx = s->above_filter_ctx = NULL;
-    s->above_mv_ctx = NULL;
-    s->segmentation_map = NULL;
-    s->mv[0] = s->mv[1] = NULL;
-    s->lflvl = NULL;
     av_freep(&s->c_b);
-    s->c_b_size = 0;
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list