|
|
@ -4559,7 +4559,7 @@ av_cold void ff_h264_free_context(H264Context *h) |
|
|
|
av_freep(h->pps_buffers + i); |
|
|
|
av_freep(h->pps_buffers + i); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
av_cold int ff_h264_decode_end(AVCodecContext *avctx) |
|
|
|
static av_cold int h264_decode_end(AVCodecContext *avctx) |
|
|
|
{ |
|
|
|
{ |
|
|
|
H264Context *h = avctx->priv_data; |
|
|
|
H264Context *h = avctx->priv_data; |
|
|
|
MpegEncContext *s = &h->s; |
|
|
|
MpegEncContext *s = &h->s; |
|
|
@ -4596,7 +4596,7 @@ AVCodec ff_h264_decoder = { |
|
|
|
.id = CODEC_ID_H264, |
|
|
|
.id = CODEC_ID_H264, |
|
|
|
.priv_data_size = sizeof(H264Context), |
|
|
|
.priv_data_size = sizeof(H264Context), |
|
|
|
.init = ff_h264_decode_init, |
|
|
|
.init = ff_h264_decode_init, |
|
|
|
.close = ff_h264_decode_end, |
|
|
|
.close = h264_decode_end, |
|
|
|
.decode = decode_frame, |
|
|
|
.decode = 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 | |
|
|
@ -4615,7 +4615,7 @@ AVCodec ff_h264_vdpau_decoder = { |
|
|
|
.id = CODEC_ID_H264, |
|
|
|
.id = CODEC_ID_H264, |
|
|
|
.priv_data_size = sizeof(H264Context), |
|
|
|
.priv_data_size = sizeof(H264Context), |
|
|
|
.init = ff_h264_decode_init, |
|
|
|
.init = ff_h264_decode_init, |
|
|
|
.close = ff_h264_decode_end, |
|
|
|
.close = h264_decode_end, |
|
|
|
.decode = decode_frame, |
|
|
|
.decode = 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, |
|
|
|