mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 02:50:38 +01:00
fix[h264d]: Fix extra data lost issue
The extra data(sps/pps) will be lost when the following flow occur: push extra data -> reset -> push idr data. Change-Id: I5f371291d5e7bcc27aad18ce6ae180b00fd76bd7 Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
This commit is contained in:
parent
ab79656052
commit
e0286d07b3
1 changed files with 2 additions and 1 deletions
|
|
@ -435,7 +435,8 @@ MPP_RET h264d_reset(void *decoder)
|
|||
p_strm->prefixdata = 0xffffffff;
|
||||
p_strm->nalu_offset = 0;
|
||||
p_strm->nalu_len = 0;
|
||||
p_strm->head_offset = 0;
|
||||
if (p_strm->nalu_type != H264_NALU_TYPE_PPS && p_strm->nalu_type != H264_NALU_TYPE_SPS)
|
||||
p_strm->head_offset = 0;
|
||||
p_strm->tmp_offset = 0;
|
||||
p_strm->first_mb_in_slice = 0;
|
||||
p_strm->endcode_found = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue