mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Implement audio speed using libavfilter.
This commit is contained in:
@@ -321,6 +321,12 @@ FramePointer MakeFramePointer() {
|
||||
return FramePointer(av_frame_alloc());
|
||||
}
|
||||
|
||||
FramePointer DuplicateFramePointer(AVFrame *frame) {
|
||||
return frame
|
||||
? FramePointer(av_frame_clone(frame))
|
||||
: FramePointer();
|
||||
}
|
||||
|
||||
bool FrameHasData(AVFrame *frame) {
|
||||
return (frame && frame->data[0] != nullptr);
|
||||
}
|
||||
|
@@ -141,6 +141,7 @@ struct FrameDeleter {
|
||||
};
|
||||
using FramePointer = std::unique_ptr<AVFrame, FrameDeleter>;
|
||||
[[nodiscard]] FramePointer MakeFramePointer();
|
||||
[[nodiscard]] FramePointer DuplicateFramePointer(AVFrame *frame);
|
||||
[[nodiscard]] bool FrameHasData(AVFrame *frame);
|
||||
void ClearFrameMemory(AVFrame *frame);
|
||||
|
||||
|
Reference in New Issue
Block a user