Skip to content

Commit cf4af4b

Browse files
committed
avcodec/mediacodecenc: Flush bsf after create extradata
Avoid leaving any data inside bsf while also avoid keep bsf in EOF state. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
1 parent 1e2ac48 commit cf4af4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavcodec/mediacodecenc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ static int mediacodec_generate_extradata(AVCodecContext *avctx)
681681
s->eof_sent = 0;
682682
ff_AMediaCodec_flush(s->codec);
683683
}
684+
av_bsf_flush(s->bsf);
684685
av_packet_free(&pkt);
685686
return ret;
686687
}

0 commit comments

Comments
 (0)