[FFmpeg-cvslog] avfilter/graphdump: Fix pointer to local outside scope
Michael Niedermayer
git at videolan.org
Wed Jun 25 17:01:40 CEST 2014
ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 28 04:01:50 2014 +0200| [99d4d3532fac0c3b6289ea207bdb3238b70540a0] | committer: Michael Niedermayer
avfilter/graphdump: Fix pointer to local outside scope
Fixes CID1194435
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 18af0ce62da322176f7bd283b85314d2f41bee2c)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=99d4d3532fac0c3b6289ea207bdb3238b70540a0
---
libavfilter/graphdump.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 756f63d..ba74ccc 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -31,9 +31,10 @@ static int print_link_prop(AVBPrint *buf, AVFilterLink *link)
{
char *format;
char layout[64];
+ AVBPrint dummy_buffer = { 0 };
if (!buf)
- buf = &(AVBPrint){ 0 }; /* dummy buffer */
+ buf = &dummy_buffer;
switch (link->type) {
case AVMEDIA_TYPE_VIDEO:
format = av_x_if_null(av_get_pix_fmt_name(link->format), "?");
More information about the ffmpeg-cvslog
mailing list