Browse Source

lavc/dxva2_h264: Fix incorrect assert statement.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
tags/n3.1
Matt Oliver 9 years ago
parent
commit
109dfed7fc
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      libavcodec/dxva2_h264.c

+ 6
- 1
libavcodec/dxva2_h264.c View File

@@ -426,7 +426,12 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
slice_data = ctx_pic->slice_long;
slice_size = ctx_pic->slice_count * sizeof(*ctx_pic->slice_long);
}
assert((bs->DataSize & 127) == 0);
#if CONFIG_D3D11VA
assert((((D3D11_VIDEO_DECODER_BUFFER_DESC *)bs)->DataSize & 127) == 0);
#endif
#if CONFIG_DXVA2
assert((((DXVA2_DecodeBufferDesc *)bs)->DataSize & 127) == 0);
#endif
return ff_dxva2_commit_buffer(avctx, ctx, sc,
type,
slice_data, slice_size, mb_count);


Loading…
Cancel
Save