h264_dec: config buf specs after resolution change [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Fri, 26 Jun 2020 06:41:30 +0000 (23:41 -0700)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 1 Jul 2020 05:05:45 +0000 (22:05 -0700)
commit7f5c772be5027d2534d1637a0a3f01e5528e52a4
treeeb9280f63b7af68dc0b4820670690e995d09f28b
parent1ccd1c0722dda7718bd7cf649ab6890c9f70a167
h264_dec: config buf specs after resolution change [1/1]

PD#SWPL-28501

Problem:
In V4L2 mode, resolution change will trigger reset() and all the
canvas are released with h264_reconfig(). When it continues decoding
the data with new resolution, decoder will write to invalid canvas.

Solution:
In vh264_set_params() call config_buf_specs in V4L2 mode.

Verify:
U212
gst-play-1.0 http://www.bok.net/dash/tears_of_steel/cleartext/stream.mpd

Change-Id: Ia57678e91001d719b9477a62fcae7688455decfd
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/amvdec_ports/aml_vcodec_dec.c
drivers/frame_provider/decoder/h264_multi/vmh264.c