]> git.sesse.net Git - nageru/commitdiff
Initialize FFmpeg networking correctly.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Apr 2017 22:57:28 +0000 (00:57 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Apr 2017 22:57:28 +0000 (00:57 +0200)
ffmpeg_capture.cpp

index ab35c5c5ef1c5f18e66f338fa1cad20fef860a9d..04038056aa13aa6747dc2b82cdce0b5f38405df5 100644 (file)
@@ -66,6 +66,8 @@ FFmpegCapture::FFmpegCapture(const string &filename, unsigned width, unsigned he
 {
        // Not really used for anything.
        description = "Video: " + filename;
+
+       avformat_network_init();  // In case someone wants this.
 }
 
 FFmpegCapture::~FFmpegCapture()