Re: [FFmpeg-devel] [PATCH] swsresample/swresample: abort on invalid layouts

2022-09-12 Thread James Almer
On 9/8/2022 8:00 PM, James Almer wrote: On 9/8/2022 7:47 PM, Andreas Rheinhardt wrote: James Almer: If it's unsupported or invalid, then there's no point trying to rebuild it using a value that may have been derived from the same layout to begin with. Move the checks before the attempts at c

Re: [FFmpeg-devel] [PATCH] swsresample/swresample: abort on invalid layouts

2022-09-08 Thread James Almer
On 9/8/2022 7:47 PM, Andreas Rheinhardt wrote: James Almer: If it's unsupported or invalid, then there's no point trying to rebuild it using a value that may have been derived from the same layout to begin with. Move the checks before the attempts at copying the layout while at it. Fixes ticke

Re: [FFmpeg-devel] [PATCH] swsresample/swresample: abort on invalid layouts

2022-09-08 Thread Andreas Rheinhardt
James Almer: > If it's unsupported or invalid, then there's no point trying to rebuild it > using a value that may have been derived from the same layout to begin with. > > Move the checks before the attempts at copying the layout while at it. > > Fixes ticket #9908. > > Signed-off-by: James Alm

[FFmpeg-devel] [PATCH] swsresample/swresample: abort on invalid layouts

2022-09-08 Thread James Almer
If it's unsupported or invalid, then there's no point trying to rebuild it using a value that may have been derived from the same layout to begin with. Move the checks before the attempts at copying the layout while at it. Fixes ticket #9908. Signed-off-by: James Almer --- libswresample/swresa