[FFmpeg-devel] avfilter/x86/vf_interlace : fix crash if unaligned data (ticket 6491)

Martin Vignali martin.vignali at gmail.com
Thu Dec 14 23:50:31 EET 2017


2017-12-14 21:33 GMT+01:00 Thomas Mundt <tmundt75 at gmail.com>:

> Hi,
>
> 2017-12-14 17:01 GMT+01:00 Martin Vignali <martin.vignali at gmail.com>:
>
> > Hello,
> >
> >
> > in attach patch to fix crash using this command line
> > ./ffmpeg -f lavfi -i testsrc=s=hd1080,format=yuv420p -vf
> > crop=1440:1080,interlace -f null -
> > (ticket 6491)
> >
> > Use unaligned load, to avoid crash
> >
>
> this changes the color planes when zscale filter is in front.
> Compare this command line output with and without your patch:
> ffmpeg -f lavfi -i testsrc=s=hd1080,format=yuv420p -vf
> zscale,interlace -c:v mpeg2video -t 5 test.mpg
>
>
>
> Doesn't change the result for me.

if i run your command line with and without the patch,
and test the framecrc of the mpg file (./ffmpeg -i ./test.mpg -f framecrc -)
, i have the same result :

0,          0,          0,        1,  3110400, 0x8505a4ea
0,          1,          1,        1,  3110400, 0xe351f524
0,          2,          2,        1,  3110400, 0x67acdc3d
0,          3,          3,        1,  3110400, 0x1ab92fcd
0,          4,          4,        1,  3110400, 0x708cc22c
0,          5,          5,        1,  3110400, 0x065dec04
0,          6,          6,        1,  3110400, 0xf96985f5
0,          7,          7,        1,  3110400, 0x206ac8b9
0,          8,          8,        1,  3110400, 0xfa4c0aa8
0,          9,          9,        1,  3110400, 0x38b1254d
0,         10,         10,        1,  3110400, 0x534efdbb
0,         11,         11,        1,  3110400, 0xe33be39a
0,         12,         12,        1,  3110400, 0xf5fa8725
0,         13,         13,        1,  3110400, 0x708e195a
0,         14,         14,        1,  3110400, 0xe3c22502
0,         15,         15,        1,  3110400, 0xd0eede2c
0,         16,         16,        1,  3110400, 0x6166c274
0,         17,         17,        1,  3110400, 0x15378a1c
0,         18,         18,        1,  3110400, 0xaaf84dd8
0,         19,         19,        1,  3110400, 0xdc96d60e
0,         20,         20,        1,  3110400, 0x64622f42
0,         21,         21,        1,  3110400, 0x9840d5a0
0,         22,         22,        1,  3110400, 0x43e41930
0,         23,         23,        1,  3110400, 0x41ee87dc
0,         24,         24,        1,  3110400, 0x1bc02d1f
0,         25,         25,        1,  3110400, 0x7b15626f
0,         26,         26,        1,  3110400, 0x75635104
0,         27,         27,        1,  3110400, 0x4459c3f2
0,         28,         28,        1,  3110400, 0x2f49c2ac
0,         29,         29,        1,  3110400, 0x80987927
0,         30,         30,        1,  3110400, 0x54dcd45e
0,         31,         31,        1,  3110400, 0x69788294
0,         32,         32,        1,  3110400, 0xab3032c0
0,         33,         33,        1,  3110400, 0x8b21c117
0,         34,         34,        1,  3110400, 0x5bd8a422
0,         35,         35,        1,  3110400, 0x8d0c2815
0,         36,         36,        1,  3110400, 0xb87110e0
0,         37,         37,        1,  3110400, 0x6fb7344d
0,         38,         38,        1,  3110400, 0x187a42e5
0,         39,         39,        1,  3110400, 0xfd904944
0,         40,         40,        1,  3110400, 0x49e48c3a
0,         41,         41,        1,  3110400, 0x2b6382f4
0,         42,         42,        1,  3110400, 0xc981115a
0,         43,         43,        1,  3110400, 0xdc724670
0,         44,         44,        1,  3110400, 0xb3e3eb4d
0,         45,         45,        1,  3110400, 0x530dda42
0,         46,         46,        1,  3110400, 0xe9891a5c
0,         47,         47,        1,  3110400, 0xab7c66c1
0,         48,         48,        1,  3110400, 0x55e1d487
0,         49,         49,        1,  3110400, 0xb16c5105
0,         50,         50,        1,  3110400, 0x30732e77
0,         51,         51,        1,  3110400, 0x8688d07a
0,         52,         52,        1,  3110400, 0x660a8e1e
0,         53,         53,        1,  3110400, 0xa7da321c
0,         54,         54,        1,  3110400, 0x600c5bb2
0,         55,         55,        1,  3110400, 0xa17feaae
0,         56,         56,        1,  3110400, 0xef73c1f7
0,         57,         57,        1,  3110400, 0xa03d2a2f
0,         58,         58,        1,  3110400, 0x3590442b
0,         59,         59,        1,  3110400, 0xb2fb7fe5


More information about the ffmpeg-devel mailing list