Skip to content
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

zm_rtsp Use of avformat_free_context not version checked #710

Closed
SteveGilvarry opened this issue Feb 18, 2015 · 0 comments
Closed

zm_rtsp Use of avformat_free_context not version checked #710

SteveGilvarry opened this issue Feb 18, 2015 · 0 comments

Comments

@SteveGilvarry
Copy link
Member

As per forum http://www.zoneminder.com/forums/viewtopic.php?f=32&t=22935

https://github.com/ZoneMinder/ZoneMinder/blame/master/src/zm_rtsp.cpp#L214

Using avformat_free_context here, but this is an new API function. https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges
2011-02-04 - f124b08 - lavf 52.96.0 - avformat_free_context()
Add avformat_free_context() in avformat.h.

Old version was av_free_format_context()
Need to version check for the correct version of ffmpeg or libav before picking a function.

I will look at submitting a PR for this in the next day or so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant