Skip to content
Snippets Groups Projects
Commit 2378ecdb authored by Jim's avatar Jim
Browse files

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

parent 755f95a3
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,9 @@ struct DShowInput { ...@@ -104,6 +104,9 @@ struct DShowInput {
device (InitGraph::False), device (InitGraph::False),
comInitialized (false) comInitialized (false)
{ {
memset(&audio, 0, sizeof(audio));
memset(&frame, 0, sizeof(frame));
av_log_set_level(AV_LOG_WARNING); av_log_set_level(AV_LOG_WARNING);
av_log_set_callback(ffmpeg_log); av_log_set_callback(ffmpeg_log);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment