Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-16 Thread Alexandre Millette
Hi again. TL;DR: use the SWS_ACCURATE_RND flag. I have solve my issue (or rather found a workaround) and thought it might help some people: Also I am not sure what would be the proper way to handle this situation. Sure I can round the width of the frame to the nearest greater multiple of

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-16 Thread Michael Bradshaw
On Mon, Jul 16, 2012 at 10:15 AM, Alexandre Millette amill...@matrox.com wrote: On a somewhat related note, can the sws_scale behavior that I was seeing be considered a bug? Yes. It's either a bug in your code or in sws_scale. The fact that ffmpeg doesn't reproduce it makes me lean towards it

[Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Alexandre Millette
Hello all. I'm working on a C++ video player using libav. Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). The issue is that a small green band (6 px in width) will appear on the right side of the frames. This is what I've

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Carl Eugen Hoyos
Alexandre Millette amillett@... writes: Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). The issue is that a small green band (6 px in width) will appear on the right side of the frames. Can you reproduce this with ffmpeg

Re: [Libav-user] sws_scale has weird behavior when not resizing

2012-07-12 Thread Alex Cohn
On Jul 12, 2012 6:30 PM, Alexandre Millette amill...@matrox.com wrote: Hello all. I'm working on a C++ video player using libav. Upon testing with various video formats and files, I've encountered a problem with a small MPEG4/mp4v file (190x240). The issue is that a small green band (6 px in