Commit d8407ee2 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Marton Balint
Browse files

ffplay: limit lowres to the maximum supported. Fixes Ticket591

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent 4e38d4ef
master n7.1-dev n7.0.2 n7.0.1 n7.0 n6.2-dev n6.1.2 n6.1.1 n6.1 n6.1-dev n6.0.1 n6.0 n5.2-dev n5.1.6 n5.1.5 n5.1.4 n5.1.3 n5.1.2 n5.1.1 n5.1 n5.1-dev n5.0.3 n5.0.2 n5.0.1 n5.0 n4.5-dev n4.4.5 n4.4.4 n4.4.3 n4.4.2 n4.4.1 n4.4 n4.4-dev n4.3.8 n4.3.7 n4.3.6 n4.3.5 n4.3.4 n4.3.3 n4.3.2 n4.3.1 n4.3 n4.3-dev n4.2.10 n4.2.9 n4.2.8 n4.2.7 n4.2.6 n4.2.5 n4.2.4 n4.2.3 n4.2.2 n4.2.1 n4.2 n4.2-dev n4.1.11 n4.1.10 n4.1.9 n4.1.8 n4.1.7 n4.1.6 n4.1.5 n4.1.4 n4.1.3 n4.1.2 n4.1.1 n4.1 n4.1-dev n4.0.6 n4.0.5 n4.0.4 n4.0.3 n4.0.2 n4.0.1 n4.0 n3.5-dev n3.4.13 n3.4.12 n3.4.11 n3.4.10 n3.4.9 n3.4.8 n3.4.7 n3.4.6 n3.4.5 n3.4.4 n3.4.3 n3.4.2 n3.4.1 n3.4 n3.4-dev n3.3.9 n3.3.8 n3.3.7 n3.3.6 n3.3.5 n3.3.4 n3.3.3 n3.3.2 n3.3.1 n3.3 n3.3-dev n3.2.19 n3.2.18 n3.2.17 n3.2.16 n3.2.15 n3.2.14 n3.2.13 n3.2.12 n3.2.11 n3.2.10 n3.2.9 n3.2.8 n3.2.7 n3.2.6 n3.2.5 n3.2.4 n3.2.3 n3.2.2 n3.2.1 n3.2 n3.2-dev n3.1.11 n3.1.10 n3.1.9 n3.1.8 n3.1.7 n3.1.6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5 n1.2.4 n1.2.3 n1.2.2 n1.2.1 n1.2 n1.2-dev n1.1.16 n1.1.15 n1.1.14 n1.1.13 n1.1.12 n1.1.11 n1.1.10 n1.1.9 n1.1.8 n1.1.7 n1.1.6 n1.1.5 n1.1.4 n1.1.3 n1.1.2 n1.1.1 n1.1 n1.1-dev n1.0.10 n1.0.9 n1.0.8 n1.0.7 n1.0.6 n1.0.5 n1.0.4 n1.0.3 n1.0.2 n1.0.1 n1.0 n0.12-dev n0.11.5 n0.11.4 n0.11.3 n0.11.2 n0.11.1 n0.11 n0.11-dev n0.10.16 n0.10.15 n0.10.14 n0.10.13 n0.10.12 n0.10.11 n0.10.10 n0.10.9 n0.10.8 n0.10.7 n0.10.6 n0.10.5 n0.10.4 n0.10.3 n0.10.2 n0.10.1 n0.10 n0.9.4 n0.9.3 n0.9.2 n0.9.1 n0.9
No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
......@@ -2226,7 +2226,12 @@ static int stream_component_open(VideoState *is, int stream_index)
avctx->workaround_bugs = workaround_bugs;
avctx->lowres = lowres;
if(lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE;
if(avctx->lowres > codec->max_lowres){
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;
}
if(avctx->lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE;
avctx->idct_algo= idct;
if(fast) avctx->flags2 |= CODEC_FLAG2_FAST;
avctx->skip_frame= skip_frame;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment