Skip to content

Why does encode.c work only with 320x240 and doesn't work with 1280x720? #3

Description

@ProgrammingLife

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions