summaryrefslogtreecommitdiffstats
path: root/loader/dshow/DS_VideoDecoder.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-11 23:29:11 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-11 23:29:11 +0000
commite2f3778cb0ba8aa7df837d66a53833bdd3a63bb2 (patch)
treebc01ef8800aea910014267cff08cdbe0f4237ec1 /loader/dshow/DS_VideoDecoder.c
parentb4caa850133c79a384c470e5575c6159a689d610 (diff)
downloadmpv-e2f3778cb0ba8aa7df837d66a53833bdd3a63bb2.tar.bz2
mpv-e2f3778cb0ba8aa7df837d66a53833bdd3a63bb2.tar.xz
avifile merge
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3467 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_VideoDecoder.c')
-rw-r--r--loader/dshow/DS_VideoDecoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/loader/dshow/DS_VideoDecoder.c b/loader/dshow/DS_VideoDecoder.c
index 75c005b5c4..b99799f55a 100644
--- a/loader/dshow/DS_VideoDecoder.c
+++ b/loader/dshow/DS_VideoDecoder.c
@@ -152,14 +152,14 @@ DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEAD
if (!flip)
{
- this->m_sVhdr2->bmiHeader.biHeight *= -1;
this->iv.m_obh.biHeight *= -1;
+ this->m_sVhdr2->bmiHeader.biHeight = this->iv.m_obh.biHeight;
result = this->m_pDS_Filter->m_pOutputPin->vt->QueryAccept(this->m_pDS_Filter->m_pOutputPin, &this->m_sDestType);
if (result)
{
- printf("Decoder does not support upside-down frames\n");
- this->m_sVhdr2->bmiHeader.biHeight *= -1;
+ printf("Decoder does not support upside-down RGB frames\n");
this->iv.m_obh.biHeight *= -1;
+ this->m_sVhdr2->bmiHeader.biHeight = this->iv.m_obh.biHeight;
}
}
@@ -280,9 +280,9 @@ int DS_VideoDecoder_DecodeInternal(DS_VideoDecoder *this, const void* src, int s
}
+ sample->vt->SetActualDataLength(sample, size);
sample->vt->GetPointer(sample, (BYTE **)&ptr);
memcpy(ptr, src, size);
- sample->vt->SetActualDataLength(sample, size);
sample->vt->SetSyncPoint(sample, is_keyframe);
sample->vt->SetPreroll(sample, pImage ? 0 : 1);
// sample->vt->SetMediaType(sample, &m_sOurType);