Add error reporting on VP8 encoder configuration error

Bug: webrtc:11310
Change-Id: I4ceb565b211a2313add193a3859f3baeaacc3e87
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/182001
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31964}
This commit is contained in:
Florent Castelli
2020-08-19 12:33:26 +02:00
committed by Commit Bot
parent 7ad1011a19
commit eeedb6ea33
4 changed files with 13 additions and 1 deletions

View File

@ -93,6 +93,8 @@ class LibvpxInterface {
vpx_codec_ctx_t* ctx,
vpx_codec_iter_t* iter) const = 0;
virtual const char* codec_error_detail(vpx_codec_ctx_t* ctx) const = 0;
// Returns interface wrapping the actual libvpx functions.
static std::unique_ptr<LibvpxInterface> CreateEncoder();
};