Browse Source

win-dshow: Clear video/audio frame data on init

jp9000 11 years ago
parent
commit
2378ecdbb5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/win-dshow/win-dshow.cpp

+ 3 - 0
plugins/win-dshow/win-dshow.cpp

@@ -104,6 +104,9 @@ struct DShowInput {
 		  device         (InitGraph::False),
 		  comInitialized (false)
 	{
+		memset(&audio, 0, sizeof(audio));
+		memset(&frame, 0, sizeof(frame));
+
 		av_log_set_level(AV_LOG_WARNING);
 		av_log_set_callback(ffmpeg_log);
 	}