This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
libavdevice/lavfi: check avfilter_graph_dump return value
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.3
Zhao Zhili
Michael Niedermayer
6 years ago
parent
2205fb2810
commit
19956d01cc
1 changed files
with
7 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-3
libavdevice/lavfi.c
+ 7
- 3
libavdevice/lavfi.c
View File
@@ -302,9 +302,13 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (lavfi->dump_graph) {
char *dump = avfilter_graph_dump(lavfi->graph, lavfi->dump_graph);
fputs(dump, stderr);
fflush(stderr);
av_free(dump);
if (dump != NULL) {
fputs(dump, stderr);
fflush(stderr);
av_free(dump);
} else {
FAIL(AVERROR(ENOMEM));
}
}
/* fill each stream with the information in the corresponding sink */
Write
Preview
Loading…
Cancel
Save