Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-08-22 23:54:06 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-22 23:54:06 +0300
commit675385e7385fad429784b1fdf43870d693656f61 (patch)
treeb29207d088947a234b486eeb75a3c5505d48c68f
parent67f5aefae8fa2f154677e5001f1f7bed8e490521 (diff)
wmv9mft: properly export the aspect ratio
-rw-r--r--decoder/LAVVideo/decoders/wmv9mft.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/wmv9mft.cpp b/decoder/LAVVideo/decoders/wmv9mft.cpp
index 6ffa4330..e5adbb26 100644
--- a/decoder/LAVVideo/decoders/wmv9mft.cpp
+++ b/decoder/LAVVideo/decoders/wmv9mft.cpp
@@ -497,6 +497,7 @@ STDMETHODIMP CDecWMV9MFT::ProcessOutput()
AVRational display_aspect_ratio = {0, 0};
av_reduce(&display_aspect_ratio.num, &display_aspect_ratio.den, (int64_t)pixel_aspect_ratio.num * pFrame->width, (int64_t)pixel_aspect_ratio.den * pFrame->height, INT_MAX);
+ pFrame->aspect_ratio = display_aspect_ratio;
pFrame->interlaced = MFGetAttributeUINT32(OutputBuffer.pSample, MFSampleExtension_Interlaced, FALSE);
pFrame->repeat = MFGetAttributeUINT32(OutputBuffer.pSample, MFSampleExtension_RepeatFirstField, FALSE);