浏览代码

Update VideoPlayer.cpp

huihui 4 年之前
父节点
当前提交
2cc7032db7
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
     aFrame = nullptr;
 
+    swrCtx = nullptr;
+
     mAudioStream = nullptr;
     mVideoStream = nullptr;