Mercurial > libavcodec.hg
comparison h263dec.c @ 11332:c66e0bc700dd libavcodec
Pass correct buffer-pointer and buffer-size to hardware accelerated
decoders when decoding packed B-frames.
author | cehoyos |
---|---|
date | Tue, 02 Mar 2010 17:12:41 +0000 |
parents | 6a29fa092197 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11331:f127f6528cb1 | 11332:c66e0bc700dd |
---|---|
616 | 616 |
617 if(MPV_frame_start(s, avctx) < 0) | 617 if(MPV_frame_start(s, avctx) < 0) |
618 return -1; | 618 return -1; |
619 | 619 |
620 if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) { | 620 if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) { |
621 ff_vdpau_mpeg4_decode_picture(s, buf, buf_size); | 621 ff_vdpau_mpeg4_decode_picture(s, s->gb.buffer, s->gb.buffer_end - s->gb.buffer); |
622 goto frame_end; | 622 goto frame_end; |
623 } | 623 } |
624 | 624 |
625 if (avctx->hwaccel) { | 625 if (avctx->hwaccel) { |
626 if (avctx->hwaccel->start_frame(avctx, buf, buf_size) < 0) | 626 if (avctx->hwaccel->start_frame(avctx, s->gb.buffer, s->gb.buffer_end - s->gb.buffer) < 0) |
627 return -1; | 627 return -1; |
628 } | 628 } |
629 | 629 |
630 ff_er_frame_start(s); | 630 ff_er_frame_start(s); |
631 | 631 |