Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-03 18:59:11 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-04 00:38:23 +0400
commitb72040daad03686318c227f3d40c4cd12e9d9eb4 (patch)
tree5dcbd581de10aef087ac67fc05593dea926179f0 /ffplay.c
parent5f99e6d632dabef3583156ab531a5d92aeaaaaae (diff)
ffplay: avoid direct access to max_lowres use av_codec_get_max_lowres()
This avoids future ABI issues when the field is moved to the end of the struct. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffplay.c b/ffplay.c
index 4d89c02b2a..e3f5062d98 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2496,10 +2496,10 @@ static int stream_component_open(VideoState *is, int stream_index)
avctx->codec_id = codec->id;
avctx->workaround_bugs = workaround_bugs;
avctx->lowres = lowres;
- if(avctx->lowres > codec->max_lowres){
+ if(avctx->lowres > av_codec_get_max_lowres(codec)){
av_log(avctx, AV_LOG_WARNING, "The maximum value for lowres supported by the decoder is %d\n",
- codec->max_lowres);
- avctx->lowres= codec->max_lowres;
+ av_codec_get_max_lowres(codec));
+ avctx->lowres= av_codec_get_max_lowres(codec);
}
avctx->error_concealment = error_concealment;