-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does encode.c work only with 320x240 and doesn't work with 1280x720? #3
Comments
Hahah but it works with the 1920x1080. What's the magick? ffmpeg/3.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda |
Hmmm, I don't reproduce :-( I've uploaded a new version for making testing easier 02e6457
Ubuntu 16.10:
Let me know if you find something out. |
Tried this example: cpp-cheat/ffmpeg/encode.c
It works with 320x240 but doesn't work if I change the size to 1280x720. I get segmentation fault. But why? How to work with 720p size and more?
There's some problem with this line:
sws_scale( sws_context, ( const uint8_t * const * ) &rgb, inLinesize, 0, frame->height, frame->data, frame->linesize );
it returns me segmentation fault only with the: 1280x720. As for 320x240 - all works fine.
The text was updated successfully, but these errors were encountered: