Skip to content
Snippets Groups Projects
Commit d64ba25a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffplay: Use sws_scale to scale subtitles


Fixes some files from Ticket679

This also changes subtitles to 4:2:0 matching the output format and thus
simplifying the blend code.
This restricts placement to the chroma sample resolution though, speak up
if you consider this a problem, say so, the code could be changed to use
YUV444 for subtitles and scaling them down while blending, this would be
slower though.
The current code only uses a single swscale context and reinitializes it
as needed, this could be changed as well if needed

Reviewed-by: default avatarMarton Balint <cus@passwd.hu>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent f40ec704
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment