1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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:
Zhao Zhili 2024-04-23 22:27:50 +08:00
parent 1e2ac489a4
commit cf4af4bca0

View File

@ -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;
}