Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #10745. Fix segfault on H.264 resolution change.
The H264PreProcessPkt() code was stubbed out for resolution change, but we were not actually uning the m_h264_parser values. Without this we wouldn't actually know about changes until after they had occurred and then we'd be giving ffmpeg improperly sized video frames in the meantime. Note: For this to work you will need to disable ffmpeg's multi-threaded decoding. This is a limitation of the ffmpeg library we're using. We shouldn't crash if multi-threading is enabled but simply end playback at the resolution change.
- Loading branch information