Browse Source

Fix FFmpeg problems on Linux

pull/37/head
MaranBr 8 months ago
committed by crueter
parent
commit
4f3086eab2
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 2
      src/video_core/host1x/ffmpeg/ffmpeg.cpp

2
src/video_core/host1x/ffmpeg/ffmpeg.cpp

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

Loading…
Cancel
Save