aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-04-21 13:06:55 +0200
committerMarton Balint <cus@passwd.hu>2012-05-15 00:31:55 +0200
commit84087b243e825327a17bb0514c249f29b829a5b2 (patch)
tree759c761782e038b080da71e2da829e01a49c588f
parent89080a0a5ef6913f47265eabddfb99520f5a5e7f (diff)
downloadffmpeg-84087b243e825327a17bb0514c249f29b829a5b2.tar.gz
ffplay: use stream sample_aspect_ratio if available in source frames
When we are using filter chains we have to set the aspect ratio of the source to the best known value, we use the av_guess_sample_aspect_ratio function to determine that. Fixes ticket 1228. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index a9d710e4c5..ef196c2a2a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1688,6 +1688,7 @@ static int input_request_frame(AVFilterLink *link)
av_free_packet(&pkt);
avfilter_copy_frame_props(picref, priv->frame);
+ picref->video->sample_aspect_ratio = av_guess_sample_aspect_ratio(priv->is->ic, priv->is->video_st, priv->frame);
picref->pts = pts;
avfilter_start_frame(link, picref);