diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-17 19:58:31 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-01-17 20:36:53 +0400 |
commit | 0b48da60c5a254e60cb444ae622744314172d8b2 (patch) | |
tree | 155954872cbefde89b64416b59c0641b2f06c600 /src/DSUtil/DSUtil.cpp | |
parent | a78c99b566d79bcc0927bf5e78e2ff030d9cff07 (diff) |
check return value
Diffstat (limited to 'src/DSUtil/DSUtil.cpp')
-rw-r--r-- | src/DSUtil/DSUtil.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp index e4953624a..b22d71146 100644 --- a/src/DSUtil/DSUtil.cpp +++ b/src/DSUtil/DSUtil.cpp @@ -1082,8 +1082,7 @@ bool ExtractAvgTimePerFrame(const AM_MEDIA_TYPE* pmt, REFERENCE_TIME& rtAvgTimeP bool ExtractBIH(IMediaSample* pMS, BITMAPINFOHEADER* bih)
{
AM_MEDIA_TYPE* pmt = NULL;
- pMS->GetMediaType(&pmt);
- if (pmt) {
+ if (SUCCEEDED(pMS->GetMediaType(&pmt)) && pmt) {
bool fRet = ExtractBIH(pmt, bih);
DeleteMediaType(pmt);
return fRet;
|