Remove unnecessary AVFrame allocation (#3021)
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3021 When input format and encode format is different in StreamWriter, filter for format conversion is inserted. A temporary AVFilter (`dst_frame`) is used for this case, but FilterGraph handles the memory allocation, so there is no need to perform allocation by ourselves. This `dst_frame` is otherwise not used, so we do not have to allocate memory at all. This commit removes the unnecessary memory allocation at all. Reviewed By: xiaohui-zhang Differential Revision: D42865042 fbshipit-source-id: 2673b06de1e905dc73a11e2ec1cc6ce7b525d451
Showing
Please register or sign in to comment