Skip to content
Permalink
Browse files

VideoPlayer: ffmpeg - use codec aspect ratio for stereo modes

  • Loading branch information...
FernetMenta authored and popcornmix committed Oct 15, 2016
1 parent f2e57d1 commit 5a98e838eac52a756a129b0fe8c77f12c24838a3
Showing with 9 additions and 0 deletions.
  1. +9 −0 xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
@@ -57,6 +57,7 @@
#endif

extern "C" {
#include "libavutil/dict.h"
#include "libavutil/opt.h"
}

@@ -1249,6 +1250,14 @@ int CDVDDemuxFFmpeg::GetNrOfStreams() const

double CDVDDemuxFFmpeg::SelectAspect(AVStream* st, bool& forced)
{
// for stereo modes, use codec aspect ratio
AVDictionaryEntry *entry = av_dict_get(st->metadata, "stereo_mode", NULL, 0);
if (entry)
{
forced = false;
return av_q2d(st->codecpar->sample_aspect_ratio);
}

// trust matroshka container
if (m_bMatroska && st->sample_aspect_ratio.num != 0)
{

0 comments on commit 5a98e83

Please sign in to comment.
You can’t perform that action at this time.