Fix HW accelerated encoder (#3140)
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3140 https://github.com/pytorch/audio/pull/3120 introduced regression in GPU encoder. This happened because previously source AVPixelFormat (expected channel order of input tensor) and AVCodecContext (encoding format) in converter (module to copy input tensor to buffer), even though converter does not need to konw about the encoding format. This commit fixes the issue and make sure that converter does not recieve codec context. Reviewed By: nateanl Differential Revision: D43759162 fbshipit-source-id: f5f191cb54ecc82bd882aececdcae16921250261
Showing
Please register or sign in to comment