Fix FFmpeg problems on Linux

This commit is contained in:
MaranBr 2025-07-10 17:16:30 -04:00 committed by crueter
parent 7b23cd0df4
commit 4f3086eab2
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -216,7 +216,7 @@ bool DecoderContext::OpenContext(const Decoder& decoder) {
bool DecoderContext::SendPacket(const Packet& packet) {
m_temp_frame = std::make_shared<Frame>();
if (const int ret = avcodec_send_packet(m_codec_context, packet.GetPacket()); ret < 0) {
if (const int ret = avcodec_send_packet(m_codec_context, packet.GetPacket()); ret < 0 && ret != AVERROR_EOF) {
LOG_ERROR(HW_GPU, "avcodec_send_packet error: {}", AVError(ret));
return false;
}