From b7e64fba7f37cc0399beae844f0a5dbef9219376 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 4 May 2016 00:15:41 +0200 Subject: Reduce the scope of some variables This avoids unused variable warnings after the next version bump. Also drop a trace level av_log() call that is in the way. --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/mux.c b/libavformat/mux.c index c967ad6b96..5f0d7ddd4b 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -639,11 +639,11 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt) goto fail; if (pkt) { +#if FF_API_COMPUTE_PKT_FIELDS2 AVStream *st = s->streams[pkt->stream_index]; av_log(s, AV_LOG_TRACE, "av_interleaved_write_frame size:%d dts:%" PRId64 " pts:%" PRId64 "\n", pkt->size, pkt->dts, pkt->pts); -#if FF_API_COMPUTE_PKT_FIELDS2 if ((ret = compute_pkt_fields2(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) goto fail; #endif -- cgit v1.2.3