[FFmpeg-cvslog] ffplay: in input_config_props(), prefer "s" over unnecessary "c" temporary variable
Stefano Sabatini
git at videolan.org
Wed Aug 17 10:31:26 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue Aug 16 17:34:50 2011 +0200| [c6ef3f44812582da27cb7300674176a28c2a2ef4] | committer: Stefano Sabatini
ffplay: in input_config_props(), prefer "s" over unnecessary "c" temporary variable
Sligthly improve readability, reduce redundancy.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6ef3f44812582da27cb7300674176a28c2a2ef4
---
ffplay.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index 13f6688..b276056 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1640,14 +1640,13 @@ static int input_query_formats(AVFilterContext *ctx)
static int input_config_props(AVFilterLink *link)
{
FilterPriv *priv = link->src->priv;
- AVCodecContext *c = priv->is->video_st->codec;
AVStream *s = priv->is->video_st;
- link->w = c->width;
- link->h = c->height;
+ link->w = s->codec->width;
+ link->h = s->codec->height;
link->sample_aspect_ratio = s->sample_aspect_ratio.num ?
- s->sample_aspect_ratio : c->sample_aspect_ratio;
- link->time_base = priv->is->video_st->time_base;
+ s->sample_aspect_ratio : s->codec->sample_aspect_ratio;
+ link->time_base = s->time_base;
return 0;
}
More information about the ffmpeg-cvslog
mailing list