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

aviobuf: Handle a NULL buffer in avio_close_dyn_buf


This simplifies proper error handling in rtsp.c/rtspdec.c. When
broadcasting over RTSP in TCP mode, the AVIOContext is closed and
recreated for each sent packet, and if the recreation fails, we might
try to close a NULL buffer when freeing things at the end.

Previously, if recreating the buffer in rtspdec.c failed, this would
crash later due to trying to close a NULL buffer.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 28240a60
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment