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 /libavcodec/pgssubdec.c | |
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 'libavcodec/pgssubdec.c')
-rw-r--r-- | libavcodec/pgssubdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index a4cb66b0ae..886685b4b5 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -515,8 +515,6 @@ static int display_end_segment(AVCodecContext *avctx, void *data, } for (i = 0; i < ctx->presentation.object_count; i++) { PGSSubObject *object; - AVSubtitleRect *rect; - int j; sub->rects[i] = av_mallocz(sizeof(*sub->rects[0])); if (!sub->rects[i]) { @@ -580,11 +578,15 @@ static int display_end_segment(AVCodecContext *avctx, void *data, #if FF_API_AVPICTURE FF_DISABLE_DEPRECATION_WARNINGS +{ + AVSubtitleRect *rect; + int j; rect = sub->rects[i]; for (j = 0; j < 4; j++) { rect->pict.data[j] = rect->data[j]; rect->pict.linesize[j] = rect->linesize[j]; } +} FF_ENABLE_DEPRECATION_WARNINGS #endif |