Revision 1968e438

View differences:

libavcodec/h264.c
7425 7425
               && avctx->skip_frame < AVDISCARD_ALL){
7426 7426
                if(ENABLE_H264_VDPAU_DECODER && avctx->codec_id == CODEC_ID_H264_VDPAU){
7427 7427
                    static const uint8_t start_code[] = {0x00, 0x00, 0x01};
7428
                    ff_vdpau_h264_add_data_chunk(h, start_code, sizeof(start_code));
7429
                    ff_vdpau_h264_add_data_chunk(h, &buf[buf_index - consumed], consumed );
7428
                    ff_vdpau_h264_add_data_chunk(s, start_code, sizeof(start_code));
7429
                    ff_vdpau_h264_add_data_chunk(s, &buf[buf_index - consumed], consumed );
7430 7430
                }else
7431 7431
                    context_count++;
7432 7432
            }
libavcodec/vdpau_internal.h
27 27
#include <stdint.h>
28 28
#include "h264.h"
29 29

  
30
void ff_vdpau_h264_add_data_chunk(H264Context *h, const uint8_t *buf,
30
void ff_vdpau_h264_add_data_chunk(MpegEncContext *s, const uint8_t *buf,
31 31
                                  int buf_size);
32 32
void ff_vdpau_h264_set_reference_frames(H264Context *h);
33 33
void ff_vdpau_h264_picture_complete(H264Context *h);
libavcodec/vdpauvideo.c
106 106
    }
107 107
}
108 108

  
109
void ff_vdpau_h264_add_data_chunk(H264Context *h,
109
void ff_vdpau_h264_add_data_chunk(MpegEncContext *s,
110 110
                                  const uint8_t *buf, int buf_size)
111 111
{
112
    MpegEncContext * s = &h->s;
113 112
    struct vdpau_render_state * render;
114 113

  
115 114
    render = (struct vdpau_render_state*)s->current_picture_ptr->data[0];

Also available in: Unified diff