aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale-test.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 11:30:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-06 20:31:44 +0100
commitb9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87 (patch)
tree3291cd272016c68f1ddbcc55dd8cd56b4087c398 /libswscale/swscale-test.c
parentc54ac7a8f252a03299c7686fb885c41ee9fc1233 (diff)
downloadffmpeg-b9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87.tar.gz
Remove a few if (p) av_freep(&p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 523d9407d57e9210428b6d962f0ebf48aae55638)
Diffstat (limited to 'libswscale/swscale-test.c')
-rw-r--r--libswscale/swscale-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index ae5f8b70fa..bd24f3e006 100644
--- a/libswscale/swscale-test.c
+++ b/libswscale/swscale-test.c
@@ -104,8 +104,7 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h,
int p;
for (p = 0; p < 4; p++)
- if (src[p])
- av_freep(&src[p]);
+ av_freep(&src[p]);
av_image_fill_linesizes(srcStride, srcFormat, srcW);
for (p = 0; p < 4; p++) {