media: ffmpeg: Fix doc comment on AvBuffer::into_raw.

To make it appear in the docs we need to use triple slash instead of
two.

BUG=None
TEST=cargo doc -p ffmpeg --features ffmpeg

Link: https://chromium-review.googlesource.com/id/I3bb869a33f23358e9787c50f923b61f879104d77
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3841002
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Auto-Submit: Tatsuyuki Ishi <ishitatsuyuki@google.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: Tatsuyuki Ishi <ishitatsuyuki@google.com>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
This commit is contained in:
Tatsuyuki Ishi 2022-08-19 13:50:38 +09:00 committed by crosvm LUCI
parent 5c6c6a14f8
commit 4a129dfd54

View file

@ -445,12 +445,12 @@ impl AvBuffer {
unsafe { std::slice::from_raw_parts_mut((*self.0).data, (*self.0).size as usize) }
}
// Consumes the `AVBuffer`, returning a `AVBufferRef` that can be used in `AVFrame`, `AVPacket`
// and others.
//
// After calling, the caller is responsible for unref-ing the returned AVBufferRef, either
// directly or through one of the automatic management facilities in `AVFrame`, `AVPacket` or
// others.
/// Consumes the `AVBuffer`, returning a `AVBufferRef` that can be used in `AVFrame`, `AVPacket`
/// and others.
///
/// After calling, the caller is responsible for unref-ing the returned AVBufferRef, either
/// directly or through one of the automatic management facilities in `AVFrame`, `AVPacket` or
/// others.
fn into_raw(self) -> *mut ffi::AVBufferRef {
ManuallyDrop::new(self).0
}