Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tyler Gibson
committed
Jan 25, 2018
1 parent
626b0a9
commit 571ac3f
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Make sure patch files only use lf. | ||
*.patch text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc | ||
index d361b8a4f..978e90181 100644 | ||
--- a/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc | ||
+++ b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc | ||
@@ -376,7 +376,10 @@ NVENCSTATUS H264EncoderImpl::Deinitialize() | ||
ReleaseIOBuffers(); | ||
nvStatus = m_pNvHWEncoder->NvEncDestroyEncoder(); | ||
|
||
- __cu(cuCtxDestroy(m_cuContext)); | ||
+ if (!m_d3dDevice) | ||
+ { | ||
+ __cu(cuCtxDestroy(m_cuContext)); | ||
+ } | ||
return nvStatus; | ||
} | ||
|