Commit cf4af4bc authored by Zhao Zhili's avatar Zhao Zhili

avcodec/mediacodecenc: Flush bsf after create extradata

Avoid leaving any data inside bsf while also avoid keep bsf in
EOF state.
Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent 1e2ac489
...@@ -681,6 +681,7 @@ bailout: ...@@ -681,6 +681,7 @@ bailout:
s->eof_sent = 0; s->eof_sent = 0;
ff_AMediaCodec_flush(s->codec); ff_AMediaCodec_flush(s->codec);
} }
av_bsf_flush(s->bsf);
av_packet_free(&pkt); av_packet_free(&pkt);
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment