crosvm/media
Alexandre Courbot 1cb3c121ee media: ffmpeg: simplify codec name method
Being able to build an AvCodec means that the returned name will be
valid - unless there is a bug in libavcodec itself. Simplify the method
returning the codec's name to not return an Option, but instead a string
representing an invalid codec in the unlikely case we actually get one.

BUG=None
TEST=cargo build --features "video-decoder,ffmpeg"

Change-Id: Ic2c1b5db5391c421ae6f78faabcfe3197090ce17
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3782030
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Takaya Saeki <takayas@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
2022-07-26 03:46:06 +00:00
..
ffmpeg media: ffmpeg: simplify codec name method 2022-07-26 03:46:06 +00:00
libva libva: use slice rather than Vec for attributes 2022-07-15 17:41:15 +00:00
libvda doc: add a top-level comment to all crates 2022-05-06 20:46:57 +00:00
vp8 devices: video: decoder: Add a VP8 parser 2022-07-13 06:51:30 +00:00