diff mbox

[FFmpeg-devel,2/2] frame: make av_frame_remove_side_data return early

Message ID 20191025050002.32599-2-quinkblack@foxmail.com
State Superseded
Headers show

Commit Message

zhilizhao Oct. 25, 2019, 5 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

---
 libavutil/frame.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/libavutil/frame.c b/libavutil/frame.c
index bb20e99331..9edf971c55 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -825,6 +825,7 @@  void av_frame_remove_side_data(AVFrame *frame, enum AVFrameSideDataType type)
             free_side_data(&frame->side_data[i]);
             frame->side_data[i] = frame->side_data[frame->nb_side_data - 1];
             frame->nb_side_data--;
+            return;
         }
     }
 }