diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-05-04 00:27:19 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-05-11 12:22:49 +0200 |
commit | 763d69bfb2f0094e99f43e657cfd2b0471361f6b (patch) | |
tree | 04812751280eccad697cc139e1e378ccf7ae259a /libavcodec/qtrleenc.c | |
parent | b7e64fba7f37cc0399beae844f0a5dbef9219376 (diff) | |
download | ffmpeg-763d69bfb2f0094e99f43e657cfd2b0471361f6b.tar.gz |
Add some more deprecation guards
Avoids unused function/label/variable warnings after the next version bump.
Diffstat (limited to 'libavcodec/qtrleenc.c')
-rw-r--r-- | libavcodec/qtrleenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c index 67c88e1960..e7de20919a 100644 --- a/libavcodec/qtrleenc.c +++ b/libavcodec/qtrleenc.c @@ -297,7 +297,9 @@ static int qtrle_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { QtrleEncContext * const s = avctx->priv_data; +#if FF_API_CODED_FRAME enum AVPictureType pict_type; +#endif int ret; if ((ret = ff_alloc_packet(pkt, s->max_buf_size)) < 0) { @@ -308,11 +310,15 @@ static int qtrle_encode_frame(AVCodecContext *avctx, AVPacket *pkt, if (avctx->gop_size == 0 || (s->avctx->frame_number % avctx->gop_size) == 0) { /* I-Frame */ +#if FF_API_CODED_FRAME pict_type = AV_PICTURE_TYPE_I; +#endif s->key_frame = 1; } else { /* P-Frame */ +#if FF_API_CODED_FRAME pict_type = AV_PICTURE_TYPE_P; +#endif s->key_frame = 0; } |