blob: ab3e7cf7e17d9ea3e2925fdccd7043d114da1d07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
When opening a file to check its avformat, the AVFormatContext pointer was
not initialized to NULL before it was passed by reference to the open
function.
Patch by Bradley Broom <bmbroom@gmail.com>
https://bugs.gentoo.org/show_bug.cgi?id=446922
--- mediatomb-0.12.1/src/metadata/ffmpeg_handler.cc
+++ mediatomb-0.12.1/src/metadata/ffmpeg_handler.cc
@@ -281,7 +281,7 @@
int x = 0;
int y = 0;
- AVFormatContext *pFormatCtx;
+ AVFormatContext *pFormatCtx = NULL;
// Suppress all log messages
av_log_set_callback(FfmpegNoOutputStub);
|