forked from FFmpeg/FFmpeg
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>
This commit is contained in:
parent
1e2ac489a4
commit
cf4af4bca0
1 changed files with 1 additions and 0 deletions
|
@ -681,6 +681,7 @@ bailout:
|
|||
s->eof_sent = 0;
|
||||
ff_AMediaCodec_flush(s->codec);
|
||||
}
|
||||
av_bsf_flush(s->bsf);
|
||||
av_packet_free(&pkt);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue