bluecherrydvr / bluecherry-client

Bluecherry cross platform video surveillance client application
www.bluecherrydvr.com
GNU General Public License v2.0
90 stars 56 forks source link

segfault when unknown video codec is encountered #298

Closed antonsviridenko closed 7 years ago

antonsviridenko commented 7 years ago

https://github.com/bluecherrydvr/bluecherry-client/blob/master/src/rtsp-stream/RtspStreamFrameFormatter.cpp#L47

probably codecpar struct is not allocated in this case

triggered by h.265/hevc streams in client 2.2.6

antonsviridenko commented 7 years ago

h.265 will be enabled in next releases, but unknown codec case should be handled properly anyway

antonsviridenko commented 7 years ago

https://github.com/bluecherrydvr/bluecherry-client/commit/f31df369ece0082718293fcdf248eb09bbdc373c