Browse Source

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

decoders when decoding packed B-frames.

Originally committed as revision 22149 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Carl Eugen Hoyos 16 years ago
parent
commit
bf9d70d5e4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/h263dec.c

+ 2
- 2
libavcodec/h263dec.c View File

@@ -618,12 +618,12 @@ retry:
return -1;

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;
}

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;
}



Loading…
Cancel
Save