#2229: sws_scale overwrites out[0][-1] on ppc -------------------------------------+------------------------------------- Reporter: cehoyos | Owner: Type: defect | Status: new Priority: important | Component: swscale Version: git-master | Resolution: Keywords: ppc | Blocked By: regression | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+-------------------------------------
Comment (by cehoyos): Using attached patch, I get the following output: {{{ $ ffmpeg -i tests/lena.pnm -pix_fmt rgba -f null - ffmpeg version N-49673-gb5884db Copyright (c) 2000-2013 the FFmpeg developers built on Feb 7 2013 13:35:12 with gcc 4.2.1 (GCC) (Apple Inc. build 5577) configuration: --cc=gcc-4.2 --enable-memalign-hack libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.101 / 54. 91.101 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Input #0, image2, from 'tests/lena.pnm': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc Output #0, null, to 'pipe:': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 256x256, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (ppm -> rawvideo) Press [q] to stop, [?] for help sws_scale() begin - dst: 0x194c010, dst[-1]: 16 sws_scale() end - dst: 0x194c010, dst[-1]: 255 [null @ 0x1009e10] Encoder did not produce proper pts, making some up. frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -134.375000% ffmpeg(33692) malloc: *** error for object 0x194c011: Non-aligned pointer being freed *** set a breakpoint in malloc_error_break to debug }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2229#comment:7> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac