diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-03 15:37:55 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-11 16:27:21 +0400 |
commit | eb16c29a769550498aff4efd0beefc78de2b0f14 (patch) | |
tree | c6da002c45fe3f41c8b1d5429eba339afb571cb5 | |
parent | e42d1a79ec1d9d7a71a0b65a24ed585665adedb8 (diff) |
Fix using potentially uninitialized local variable.
-rw-r--r-- | src/DeCSS/udf.cpp | 4 | ||||
-rw-r--r-- | src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/DeCSS/udf.cpp b/src/DeCSS/udf.cpp index 150016bde..6007219bf 100644 --- a/src/DeCSS/udf.cpp +++ b/src/DeCSS/udf.cpp @@ -68,8 +68,8 @@ tp_udf_file udf_get_root(const HANDLE hDrive, const WORD partition_number) tp_udf_tag tag = (tp_udf_tag)sector;
DWORD sec_size, max_sec, i, j;
DWORD MVDS_lba, MVDS_lba_end, MVDS_back_lba, MVDS_back_lba_end;
- DWORD FileDescriptorSequence_lba, FileDescriptorSequence_lba_end;
- DWORD partition_lba, parent_icb;
+ DWORD FileDescriptorSequence_lba = 0, FileDescriptorSequence_lba_end;
+ DWORD partition_lba = 0, parent_icb;
tp_udf_AnchorVolumeDescriptorPointer avd;
bool res, part_valid, vol_valid;
diff --git a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp index e459e617e..62dd01fff 100644 --- a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp @@ -674,7 +674,7 @@ HRESULT CEVRAllocatorPresenter::IsMediaTypeSupported(IMFMediaType* pMixerType) }
// We support only progressive formats
- MFVideoInterlaceMode InterlaceMode;
+ MFVideoInterlaceMode InterlaceMode = MFVideoInterlace_Unknown;
if (SUCCEEDED(hr)) {
hr = pMixerType->GetUINT32(MF_MT_INTERLACE_MODE, (UINT32*)&InterlaceMode);
|