Skip to content
Snippets Groups Projects
Commit 271c869c authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtmp: Don't try to do av_malloc(0)


Some received packets can have size 0. The return value from
av_malloc(0) may be NULL, which is ok if the size was 0. On
OS X, however, the returned pointer is non-null but leads to
crashes when trying to free it.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 67540af7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment