media: ffmpeg: Fix doctest failure.

Fixes the following failure:

error[E0659]: `ffmpeg` is ambiguous
  --> crosvm/media/ffmpeg/src/lib.rs:11:5
   |
11 | use ffmpeg as ffi;
   |     ^^^^^^ ambiguous name
   |
   = note: ambiguous because of multiple potential import sources
   = note: `ffmpeg` could refer to a crate passed with `--extern`
   = help: use `::ffmpeg` to refer to this crate unambiguously
note: `ffmpeg` could also refer to the module defined here
  --> crosvm/media/ffmpeg/src/lib.rs:10:1
   |
10 | mod ffmpeg;
   | ^^^^^^^^^^^
   = help: use `crate::ffmpeg` to refer to this module unambiguously

BUG=None
TEST=cargo test -p ffmpeg

Change-Id: I6665bec21336c78cd773593cd0310e996a345e1d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3924262
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Tatsuyuki Ishi 2022-09-28 19:30:45 +09:00 committed by crosvm LUCI
parent 27bdb64e4d
commit 5924952188

View file

@ -8,7 +8,7 @@ pub use avutil::*;
mod error;
pub use error::*;
mod ffmpeg;
use ffmpeg as ffi;
use crate::ffmpeg as ffi;
pub mod swscale;
pub use ffi::AVPixelFormat_AV_PIX_FMT_NV12;