Browse Source

Update VideoPlayer.cpp

huihui 4 years ago
parent
commit
2cc7032db7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      module/VideoPlayer/src/VideoPlayer/VideoPlayer.cpp

+ 2 - 0
module/VideoPlayer/src/VideoPlayer/VideoPlayer.cpp

@@ -245,6 +245,8 @@ void VideoPlayer::readVideoFile()
     aCodec = nullptr;
     aCodec = nullptr;
     aFrame = nullptr;
     aFrame = nullptr;
 
 
+    swrCtx = nullptr;
+
     mAudioStream = nullptr;
     mAudioStream = nullptr;
     mVideoStream = nullptr;
     mVideoStream = nullptr;