summaryrefslogtreecommitdiffstats
path: root/media/ffmpeg/ffmpeg_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/ffmpeg/ffmpeg_common.cc')
-rw-r--r--media/ffmpeg/ffmpeg_common.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
index cbcb7c6..396ee03 100644
--- a/media/ffmpeg/ffmpeg_common.cc
+++ b/media/ffmpeg/ffmpeg_common.cc
@@ -289,9 +289,9 @@ VideoFrame::Format PixelFormatToVideoFormat(PixelFormat pixel_format) {
case PIX_FMT_YUV420P:
return VideoFrame::YV12;
default:
- NOTREACHED() << "Unsupported PixelFormat: " << pixel_format;
+ DLOG(WARNING) << "Unsupported PixelFormat: " << pixel_format;
+ return VideoFrame::INVALID;
}
- return VideoFrame::INVALID;
}
PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format) {
@@ -301,9 +301,9 @@ PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format) {
case VideoFrame::YV12:
return PIX_FMT_YUV420P;
default:
- NOTREACHED() << "Unsupported VideoFrame Format: " << video_format;
+ DLOG(WARNING) << "Unsupported VideoFrame Format: " << video_format;
+ return PIX_FMT_NONE;
}
- return PIX_FMT_NONE;
}
base::TimeDelta GetFrameDuration(const VideoDecoderConfig& config) {