* Fix crash due to uninitialized AVFormatContext pointer. (Thanks Wolfram Gloger)
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user