From 35ab379e9fd11d262a4f7bc5466cb7fcf2b23354 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 16 Feb 2020 10:28:18 +1100 Subject: [PATCH] ffmpegdecoder: updated comment to better describe error handling --- app/codec/ffmpeg/ffmpegdecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/codec/ffmpeg/ffmpegdecoder.cpp b/app/codec/ffmpeg/ffmpegdecoder.cpp index dc72465ad..a49ab8fa8 100644 --- a/app/codec/ffmpeg/ffmpegdecoder.cpp +++ b/app/codec/ffmpeg/ffmpegdecoder.cpp @@ -912,7 +912,7 @@ int FFmpegDecoder::GetFrame(AVPacket *pkt, AVFrame *frame) // Send a null packet to signal end of avcodec_send_packet(codec_ctx_, nullptr); } else if (ret < 0) { - // Handle other error + // Handle other error by breaking loop and returning the code we received break; } else { // Successful read, send the packet