Commit dc2ab882 authored by cehoyos's avatar cehoyos

Pass correct buffer-pointer and buffer-size to hardware accelerated

decoders when decoding packed B-frames.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22149 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7fde51a6
...@@ -618,12 +618,12 @@ retry: ...@@ -618,12 +618,12 @@ retry:
return -1; return -1;
if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) { if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)) {
ff_vdpau_mpeg4_decode_picture(s, buf, buf_size); ff_vdpau_mpeg4_decode_picture(s, s->gb.buffer, s->gb.buffer_end - s->gb.buffer);
goto frame_end; goto frame_end;
} }
if (avctx->hwaccel) { if (avctx->hwaccel) {
if (avctx->hwaccel->start_frame(avctx, buf, buf_size) < 0) if (avctx->hwaccel->start_frame(avctx, s->gb.buffer, s->gb.buffer_end - s->gb.buffer) < 0)
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment