summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-10 12:47:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-10 12:47:37 +0100
commitd80820655362645ae1c65d457287d7d12c04a44f (patch)
treee1066d348d7ca9e9b4a156f76b7d2766602dbded /ffplay.c
parent30085bd43e35acf931429dc445db5bc1869be022 (diff)
parentdb0a943266be29ff0596872ebb418dfed75d00de (diff)
Merge commit 'db0a943266be29ff0596872ebb418dfed75d00de'
* commit 'db0a943266be29ff0596872ebb418dfed75d00de': avplay: apply the stream sample_aspect_ratio to decoded video frames Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index d8dbe449f9..145e0452ad 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1688,6 +1688,9 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
if (*pts == AV_NOPTS_VALUE) {
*pts = 0;
}
+ if (is->video_st->sample_aspect_ratio.num) {
+ frame->sample_aspect_ratio = is->video_st->sample_aspect_ratio;
+ }
if (framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) {
SDL_LockMutex(is->pictq_mutex);