diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-05-04 00:15:41 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-05-11 12:21:25 +0200 |
commit | b7e64fba7f37cc0399beae844f0a5dbef9219376 (patch) | |
tree | 9e23cf4f3d2067b97b0005c251c4c78e28ce2400 /libavformat | |
parent | bc2a32969eb4db17677971def5ad5b936d9d1648 (diff) | |
download | ffmpeg-b7e64fba7f37cc0399beae844f0a5dbef9219376.tar.gz |
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.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |