Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1893
  • Loading branch information
jeanlf committed Aug 30, 2021
1 parent 5ce0c90 commit 7bb1b4a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/media_tools/av_parsers.c
Expand Up @@ -3980,10 +3980,8 @@ void gf_av1_reset_state(AV1State *state, Bool is_destroy)
gf_list_del(l1);
gf_list_del(l2);
if (state->bs) {
if (gf_bs_get_position(state->bs)) {
u32 size;
gf_bs_get_content_no_truncate(state->bs, &state->frame_obus, &size, &state->frame_obus_alloc);
}
u32 size;
gf_bs_get_content_no_truncate(state->bs, &state->frame_obus, &size, &state->frame_obus_alloc);
gf_bs_del(state->bs);
}
state->bs = NULL;
Expand Down

0 comments on commit 7bb1b4a

Please sign in to comment.