ffmpegdecoder: updated comment to better describe error handling

This commit is contained in:
itsmattkc
2020-02-16 10:28:18 +11:00
parent cb3ef5d994
commit 35ab379e9f
+1 -1
View File
@@ -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