diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-08-15 22:13:14 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-08-19 06:22:08 -0700 |
commit | b977b287f61fea48ecd6251d54a26334213b7ec6 (patch) | |
tree | d7229a63bfbe83148680eda568468b99e0718263 /libavfilter | |
parent | 6af2930222ee5d8ce19f3b999a78d85a3c457391 (diff) | |
download | ffmpeg-b977b287f61fea48ecd6251d54a26334213b7ec6.tar.gz |
vsrc_movie: Avoid a variable indirection in movie_get_frame()
This avoids an unused variable warning with MSVC since the variable is
only used in a debug mode printf statement.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_movie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vsrc_movie.c b/libavfilter/vsrc_movie.c index 8ebdd063e6..1ee0f168f0 100644 --- a/libavfilter/vsrc_movie.c +++ b/libavfilter/vsrc_movie.c @@ -206,7 +206,6 @@ static int movie_get_frame(AVFilterLink *outlink) MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, frame_decoded; - AVStream av_unused *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; @@ -226,7 +225,8 @@ static int movie_get_frame(AVFilterLink *outlink) av_dlog(outlink->src, "movie_get_frame(): file:'%s' pts:%"PRId64" time:%f aspect:%d/%d\n", movie->file_name, movie->frame->pts, - (double)movie->frame->pts * av_q2d(st->time_base), + (double)movie->frame->pts * + av_q2d(movie->format_ctx->streams[movie->stream_index]), movie->frame->sample_aspect_ratio.num, movie->frame->sample_aspect_ratio.den); // We got it. Free the packet since we are returning |