ffplay: set input link sample aspect ratio in input_config_props()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 30 Jul 2011 16:15:08 +0000 (18:15 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 30 Jul 2011 16:31:10 +0000 (18:31 +0200)
Allow sample_aspect_ratio information to be correctly propagated in
the filterchain.

ffplay.c

index 6bdf4b6..eb9d81b 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1652,6 +1652,7 @@ static int input_config_props(AVFilterLink *link)
 
     link->w = c->width;
     link->h = c->height;
+    link->sample_aspect_ratio = priv->is->video_st->sample_aspect_ratio;
     link->time_base = priv->is->video_st->time_base;
 
     return 0;