summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 17:08:29 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 17:12:54 +0100
commit5d208afe19d37bd246de2f47436a86669d612fc9 (patch)
treeb1c4561bf3b97ab39625686ed7a684ed125b3493 /src
parentaa7667b2987c96b514dbba141491ed3b948d4bd5 (diff)
downloadadvtime-5d208afe19d37bd246de2f47436a86669d612fc9.tar.gz
advtime-5d208afe19d37bd246de2f47436a86669d612fc9.tar.bz2
advtime-5d208afe19d37bd246de2f47436a86669d612fc9.zip
advtime: Check if frame_b can be freed
Diffstat (limited to 'src')
-rw-r--r--src/advtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/advtime.c b/src/advtime.c
index be0427e..b68b73a 100644
--- a/src/advtime.c
+++ b/src/advtime.c
@@ -197,7 +197,8 @@ main(int argc, char **argv)
}
video_decode_free_frame(&frame_a);
- video_decode_free_frame(&frame_b);
+ if (frame_b)
+ video_decode_free_frame(&frame_b);
video_decode_uninit(&vd);
return EXIT_SUCCESS;
}