Index: content/common/gpu/media/vaapi_h264_decoder.cc |
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc |
index 0d8643e9de2f8612911de9c725489efa1da86308..b459ebbcc0e1864e59a793f63099f1f8b6df4aa5 100644 |
--- a/content/common/gpu/media/vaapi_h264_decoder.cc |
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc |
@@ -1506,6 +1506,8 @@ bool VaapiH264Decoder::OutputPic(H264Picture* pic) { |
// No longer need to keep POC->surface mapping, since for decoder this POC |
// is finished with. When the client returns this surface via |
// ReusePictureBuffer(), it will be marked back as available for use. |
+ DCHECK(!pic->outputted); |
+ pic->outputted = true; |
DecodeSurface* dec_surface = UnassignSurfaceFromPoC(pic->pic_order_cnt); |
if (!dec_surface) |
return false; |