Mercurial > libavcodec.hg
changeset 9045:5fb849bddf4a libavcodec
Add hwaccel->decode_slice() call for avhwaccel by Gwenole Beauchesne.
author | michael |
---|---|
date | Wed, 25 Feb 2009 19:39:42 +0000 |
parents | a56d79b0b9fb |
children | 2e0b55e4474f |
files | h264.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Feb 25 19:16:27 2009 +0000 +++ b/h264.c Wed Feb 25 19:39:42 2009 +0000 @@ -7494,6 +7494,10 @@ && (avctx->skip_frame < AVDISCARD_BIDIR || hx->slice_type_nos!=FF_B_TYPE) && (avctx->skip_frame < AVDISCARD_NONKEY || hx->slice_type_nos==FF_I_TYPE) && avctx->skip_frame < AVDISCARD_ALL){ + if(avctx->hwaccel) { + if (avctx->hwaccel->decode_slice(avctx, &buf[buf_index - consumed], consumed) < 0) + return -1; + }else if(CONFIG_H264_VDPAU_DECODER && s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU){ static const uint8_t start_code[] = {0x00, 0x00, 0x01}; ff_vdpau_add_data_chunk(s, start_code, sizeof(start_code));