* Fix crash due to uninitialized AVFormatContext pointer. (Thanks Wolfram Gloger)

This commit is contained in:
Justin Maggard 2011-07-18 18:03:45 +00:00
parent e3506a60f1
commit 4d6b956bda

View File

@ -647,7 +647,7 @@ GetVideoMetadata(const char * path, char * name)
struct stat file; struct stat file;
int ret, i; int ret, i;
struct tm *modtime; struct tm *modtime;
AVFormatContext *ctx; AVFormatContext *ctx = NULL;
AVCodecContext *ac = NULL, *vc = NULL; AVCodecContext *ac = NULL, *vc = NULL;
int audio_stream = -1, video_stream = -1; int audio_stream = -1, video_stream = -1;
enum audio_profiles audio_profile = PROFILE_AUDIO_UNKNOWN; enum audio_profiles audio_profile = PROFILE_AUDIO_UNKNOWN;