crosvm/media/libva/src
Alexandre Courbot 9167a10db1 video: decoder: ffmpeg: fix H.264 decoding with ffmpeg in guest
When decoding H.264, ffmpeg tries to set the frame format before
receiving the first DRC event, which is currently rejected even though
this is valid from the point of view of the client.  We need to silently
accept the temporary format and all queued output buffers until the
initial DRC event is fired, even though we won't emit any frame.

BUG=None
TEST=`ffmpeg -codec:v h264_v4l2m2m -i Big_Buck_Bunny_720_10s_1MB.mp4 BBB-%d.png`
completes successfully in the guest and produces valid frames.

Change-Id: I9a190ab2748bd59ff57d54be681f2a1553d1c6a3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3841484
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
2022-11-07 10:50:23 +00:00
..
bindings bindgen: update bindings to Linux 5.15 2022-09-14 22:09:30 +00:00
bindings.rs Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
buffer.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
buffer_type.rs video: decoder: ffmpeg: fix H.264 decoding with ffmpeg in guest 2022-11-07 10:50:23 +00:00
config.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
context.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
display.rs video: decoder: ffmpeg: fix H.264 decoding with ffmpeg in guest 2022-11-07 10:50:23 +00:00
generic_value.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
image.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
lib.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
picture.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
status.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
surface.rs media: libva: improve the documentation a bit 2022-11-01 05:43:21 +00:00
usage_hint.rs video: decoder: ffmpeg: fix H.264 decoding with ffmpeg in guest 2022-11-07 10:50:23 +00:00