"docs/vscode:/vscode.git/clone" did not exist on "dba5cf31d7b2d851945f3fbf7425d5850a491dfd"
Fix duplicated memory allocation in StreamWriter (#2906)
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/2906 The correct way to create AVFormatContext* for output is to pass an address of an uninitialized *AVFormatContext struct to `avformat_alloc_output_context2` function. The current code pre-allocates AVFormatContext* with `avformat_alloc_context`, then this allocated object is lost inside of `avformat_alloc_output_context2`. Reviewed By: xiaohui-zhang Differential Revision: D41865685 fbshipit-source-id: 9a9dc83b5acfe9b450f191fe716c85ebb5a5d842
Showing
Please register or sign in to comment