diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2019-07-12 16:45:12 -0700 |
---|---|---|
committer | Ray Essick <essick@google.com> | 2020-02-12 00:33:55 +0000 |
commit | 8ff92056d7958449e31b898bdda291cc162ec87e (patch) | |
tree | 50ffcdeeb6e91b96eecd9f2b02cf0388b4220097 | |
parent | 3ea8f1d536da8f09f3e663cf173fe4f1b0fe4130 (diff) | |
download | libmpeg2-8ff92056d7958449e31b898bdda291cc162ec87e.tar.gz |
Fix missing initialization of deinterlace intermediate buffer
When color format is other than 420p, deinterlacer uses intermediate
buffer for storing chroma output.
For multi-threaded cases, this intermediate buffer was not initialized
in all thread contexts.
Bug: 136697219
Test: poc in bug
Change-Id: I45d4e7634ed0e2c126a5508aea011617b6c6cc25
(cherry picked from commit 5e15457fadb59bfc75077ef9e2592f835185a32b)
-rw-r--r-- | decoder/impeg2d_dec_hdr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/impeg2d_dec_hdr.c b/decoder/impeg2d_dec_hdr.c index b60f488..3c974a5 100644 --- a/decoder/impeg2d_dec_hdr.c +++ b/decoder/impeg2d_dec_hdr.c @@ -1253,6 +1253,7 @@ static WORD32 impeg2d_init_thread_dec_ctxt(dec_state_t *ps_dec, ps_dec_thd->ps_func_forw_or_back = ps_dec->ps_func_forw_or_back; ps_dec_thd->pv_deinterlacer_ctxt = ps_dec->pv_deinterlacer_ctxt; ps_dec_thd->ps_deint_pic = ps_dec->ps_deint_pic; + ps_dec_thd->pu1_deint_fmt_buf = ps_dec->pu1_deint_fmt_buf; return 0; } |