mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-24 04:26:57 +00:00
swscale: make handle_formats() safe to be called multiple times
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d5f5e51662
commit
0fc11e7bad
@ -1043,10 +1043,10 @@ static int handle_xyz(enum AVPixelFormat *format)
|
||||
|
||||
static void handle_formats(SwsContext *c)
|
||||
{
|
||||
c->src0Alpha = handle_0alpha(&c->srcFormat);
|
||||
c->dst0Alpha = handle_0alpha(&c->dstFormat);
|
||||
c->srcXYZ = handle_xyz(&c->srcFormat);
|
||||
c->dstXYZ = handle_xyz(&c->dstFormat);
|
||||
c->src0Alpha |= handle_0alpha(&c->srcFormat);
|
||||
c->dst0Alpha |= handle_0alpha(&c->dstFormat);
|
||||
c->srcXYZ |= handle_xyz(&c->srcFormat);
|
||||
c->dstXYZ |= handle_xyz(&c->dstFormat);
|
||||
}
|
||||
|
||||
SwsContext *sws_alloc_context(void)
|
||||
|
Loading…
Reference in New Issue
Block a user