Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FFmpegWriter: Free any old context before clobbering
valgrind caught that AVFORMAT_NEW_STREAM() could be leaking pointers when calling avcodec_alloc_context3(), if there's an existing context already assigned. So we check and free it first, if necessary.
- Loading branch information