mirror of https://git.ffmpeg.org/ffmpeg.git
Merge remote-tracking branch 'qatar/master'
* qatar/master: h264: namespace the decode function Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
74a9c92840
|
@ -5100,8 +5100,8 @@ static int output_frame(H264Context *h, AVFrame *dst, Picture *srcp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int decode_frame(AVCodecContext *avctx, void *data,
|
static int h264_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
int *got_frame, AVPacket *avpkt)
|
int *got_frame, AVPacket *avpkt)
|
||||||
{
|
{
|
||||||
const uint8_t *buf = avpkt->data;
|
const uint8_t *buf = avpkt->data;
|
||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
|
@ -5288,7 +5288,7 @@ AVCodec ff_h264_decoder = {
|
||||||
.priv_data_size = sizeof(H264Context),
|
.priv_data_size = sizeof(H264Context),
|
||||||
.init = ff_h264_decode_init,
|
.init = ff_h264_decode_init,
|
||||||
.close = h264_decode_end,
|
.close = h264_decode_end,
|
||||||
.decode = decode_frame,
|
.decode = h264_decode_frame,
|
||||||
.capabilities = /*CODEC_CAP_DRAW_HORIZ_BAND |*/ CODEC_CAP_DR1 |
|
.capabilities = /*CODEC_CAP_DRAW_HORIZ_BAND |*/ CODEC_CAP_DR1 |
|
||||||
CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS |
|
CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS |
|
||||||
CODEC_CAP_FRAME_THREADS,
|
CODEC_CAP_FRAME_THREADS,
|
||||||
|
@ -5308,7 +5308,7 @@ AVCodec ff_h264_vdpau_decoder = {
|
||||||
.priv_data_size = sizeof(H264Context),
|
.priv_data_size = sizeof(H264Context),
|
||||||
.init = ff_h264_decode_init,
|
.init = ff_h264_decode_init,
|
||||||
.close = h264_decode_end,
|
.close = h264_decode_end,
|
||||||
.decode = decode_frame,
|
.decode = h264_decode_frame,
|
||||||
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
|
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
|
||||||
.flush = flush_dpb,
|
.flush = flush_dpb,
|
||||||
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_VDPAU_H264,
|
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_VDPAU_H264,
|
||||||
|
|
Loading…
Reference in New Issue