projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b0d2bb
)
am7xxx-play: remove useless call to avcodec_close() in video_output_init()
author
Antonio Ospite <ao2@ao2.it>
Wed, 28 Feb 2018 12:25:07 +0000
(13:25 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 1 Mar 2018 14:33:27 +0000
(15:33 +0100)
If the code reaches the "cleanup" exit path in video_output_init() the
output codec context was never opened, so there is no need to close it.
examples/am7xxx-play.c
patch
|
blob
|
history
diff --git
a/examples/am7xxx-play.c
b/examples/am7xxx-play.c
index
b43adc6
..
88d398a
100644
(file)
--- a/
examples/am7xxx-play.c
+++ b/
examples/am7xxx-play.c
@@
-266,7
+266,6
@@
static int video_output_init(struct video_output_ctx *output_ctx,
goto out;
cleanup:
- avcodec_close(output_codec_ctx);
avcodec_free_context(&output_codec_ctx);
out:
return ret;