[vlc-commits] avcodec: remove reset of AVCodecContext draw_horiz_band field
Zhao Zhili
git at videolan.org
Tue Nov 3 09:42:55 CET 2020
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Oct 8 14:02:00 2020 +0200| [7f975dec89edbe1b954e6d9f8fc506c742c49e5b] | committer: Steve Lhomme
avcodec: remove reset of AVCodecContext draw_horiz_band field
The draw_horiz_band field is initialized to NULL by libavcodec. It
doesn't been modified since then, so there is no point to reset it
again.
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f975dec89edbe1b954e6d9f8fc506c742c49e5b
---
modules/codec/avcodec/video.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index cdc63a5083..dd2b69ebef 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1670,7 +1670,6 @@ no_reuse:
p_sys->p_va = va;
p_sys->pix_fmt = hwfmt;
- p_context->draw_horiz_band = NULL;
vlc_mutex_unlock(&p_sys->lock);
return hwfmt;
}
More information about the vlc-commits
mailing list