[FFmpeg-devel] [PATCH 4/4] qsvenc: use 'else' on exclusive code
Steve Lhomme
robux4 at gmail.com
Thu Sep 21 16:52:50 EEST 2017
---
libavcodec/qsvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index bbf72e54b0..806cef5633 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1048,7 +1048,7 @@ static int encode_frame(AVCodecContext *avctx, QSVEncContext *q,
if (ret > 0)
ff_qsv_print_warning(avctx, ret, "Warning during encoding");
- if (ret < 0) {
+ else if (ret < 0) {
qsv_packet_release(&qsv_pkt);
return (ret == MFX_ERR_MORE_DATA) ?
0 : ff_qsv_print_error(avctx, ret, "Error during encoding");
--
2.12.1
More information about the ffmpeg-devel
mailing list