| Index: media/ffmpeg/ffmpeg_common.cc
|
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
|
| index fc0b7efc51faa1ffea6028cbf7498181859a9357..251fbdfabf440b52f65fb6b36c3fc6cf7317e1e3 100644
|
| --- a/media/ffmpeg/ffmpeg_common.cc
|
| +++ b/media/ffmpeg/ffmpeg_common.cc
|
| @@ -744,6 +744,12 @@ ColorSpace AVColorSpaceToColorSpace(AVColorSpace color_space,
|
| return COLOR_SPACE_UNSPECIFIED;
|
| }
|
|
|
| +std::string AVErrorToString(int errnum) {
|
| + char errbuf[AV_ERROR_MAX_STRING_SIZE] = {0};
|
| + av_strerror(errnum, errbuf, AV_ERROR_MAX_STRING_SIZE);
|
| + return std::string(errbuf);
|
| +}
|
| +
|
| int32_t HashCodecName(const char* codec_name) {
|
| // Use the first 32-bits from the SHA1 hash as the identifier.
|
| int32_t hash;
|
|
|