Guest User

Untitled

a guest
Feb 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.95 KB | None | 0 0
  1. diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
  2. index 5387064..95790c9 100644
  3. --- a/libavcodec/mpeg4videodec.c
  4. +++ b/libavcodec/mpeg4videodec.c
  5. @@ -2307,4 +2307,18 @@ AVCodec ff_mpeg4_vdpau_decoder = {
  6.      .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 (VDPAU)"),
  7.      .pix_fmts= (const enum PixelFormat[]){PIX_FMT_VDPAU_MPEG4, PIX_FMT_NONE},
  8.  };
  9. +
  10. +AVCodec ff_h263_vdpau_decoder = {
  11. +    .name           = "h263_vdpau",
  12. +    .type           = AVMEDIA_TYPE_VIDEO,
  13. +    .id             = CODEC_ID_H263,
  14. +    .priv_data_size = sizeof(MpegEncContext),
  15. +    .init           = decode_init,
  16. +    .close          = ff_h263_decode_end,
  17. +    .decode         = ff_h263_decode_frame,
  18. +    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
  19. +    .long_name= NULL_IF_CONFIG_SMALL("H.263 (VDPAU)"),
  20. +    .pix_fmts= (const enum PixelFormat[]){PIX_FMT_VDPAU_MPEG4, PIX_FMT_NONE},
  21. +};
  22. +
  23.  #endif
Add Comment
Please, Sign In to add comment