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-23 00:05:17 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-23 00:05:17 +0300
commitfa0a5044a91186ed21b858ac2b9970ff777b19df (patch)
tree0c6719ec9022fa8042087bc33ef2f6185b1ea1e2
parent675385e7385fad429784b1fdf43870d693656f61 (diff)
Set a better default for the aspect ratio
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index d7f84c15..da336f42 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -1460,6 +1460,7 @@ STDMETHODIMP CLAVVideo::AllocateFrame(LAVFrame **ppFrame)
(*ppFrame)->bpp = 8;
(*ppFrame)->rtStart = AV_NOPTS_VALUE;
(*ppFrame)->rtStop = AV_NOPTS_VALUE;
+ (*ppFrame)->aspect_ratio = { 0, 1 };
(*ppFrame)->frame_type = '?';