| Index: media/filters/ffmpeg_video_allocator.h
|
| diff --git a/media/filters/ffmpeg_video_allocator.h b/media/filters/ffmpeg_video_allocator.h
|
| index 2cb1d742a4b69581589b903a1280af3b3402bd91..b72a1f114f361239f8a8b25307744933688f4777 100644
|
| --- a/media/filters/ffmpeg_video_allocator.h
|
| +++ b/media/filters/ffmpeg_video_allocator.h
|
| @@ -28,7 +28,13 @@ class FFmpegVideoAllocator {
|
|
|
| struct RefCountedAVFrame {
|
| RefCountedAVFrame() : usage_count_(0) {}
|
| - ~RefCountedAVFrame() { DCHECK_EQ(usage_count_, 0); }
|
| +
|
| + // TODO(jiesun): we had commented out "DCHECK_EQ(usage_count_, 0);" here.
|
| + // Because the way FFMPEG-MT handle release buffer in delayed fashion.
|
| + // Probably we could wait FFMPEG-MT release all buffers before we callback
|
| + // the flush completion.
|
| + ~RefCountedAVFrame() {}
|
| +
|
| void AddRef() {
|
| base::AtomicRefCountIncN(&usage_count_, 1);
|
| }
|
|
|