[FFmpeg-cvslog] avcodec/qsvenc: Reindent after the previous commit

Andreas Rheinhardt git at videolan.org
Mon Feb 7 02:07:10 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Jan 22 20:08:57 2022 +0100| [d3c6156ce33911d1aa35fee3758f310f3a237696] | committer: Andreas Rheinhardt

avcodec/qsvenc: Reindent after the previous commit

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3c6156ce33911d1aa35fee3758f310f3a237696
---

 libavcodec/qsvenc.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index af20ffb1c7..07be4287b7 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1844,17 +1844,17 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
         QSVPacket pkt;
         while (av_fifo_read(q->async_fifo, &pkt, 1) >= 0) {
 #if QSV_VERSION_ATLEAST(1, 26)
-        if (avctx->codec_id == AV_CODEC_ID_H264) {
-            mfxExtBuffer **enc_buf = pkt.bs->ExtParam;
-            mfxExtAVCEncodedFrameInfo *enc_info = (mfxExtAVCEncodedFrameInfo *)(*enc_buf);
-            av_freep(&enc_info);
-            av_freep(&enc_buf);
-        }
+            if (avctx->codec_id == AV_CODEC_ID_H264) {
+                mfxExtBuffer **enc_buf = pkt.bs->ExtParam;
+                mfxExtAVCEncodedFrameInfo *enc_info = (mfxExtAVCEncodedFrameInfo *)(*enc_buf);
+                av_freep(&enc_info);
+                av_freep(&enc_buf);
+            }
 #endif
-        av_freep(&pkt.sync);
-        av_freep(&pkt.bs);
-        av_packet_unref(&pkt.pkt);
-    }
+            av_freep(&pkt.sync);
+            av_freep(&pkt.bs);
+            av_packet_unref(&pkt.pkt);
+        }
         av_fifo_freep2(&q->async_fifo);
     }
 



More information about the ffmpeg-cvslog mailing list