avcodec/videotoolbox: cleanups
No functional changes.
Signed-off-by: Aman Gupta <aman@tmm1.net>
(cherry picked from commit dd77cca1c4)
This commit is contained in:
parent
ef9478d264
commit
e40922c16c
1 changed files with 2 additions and 4 deletions
|
|
@ -343,7 +343,7 @@ int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx,
|
|||
uint32_t size)
|
||||
{
|
||||
VTContext *vtctx = avctx->internal->hwaccel_priv_data;
|
||||
H264Context *h = avctx->priv_data;
|
||||
H264Context *h = avctx->priv_data;
|
||||
|
||||
if (h->is_avc == 1) {
|
||||
return videotoolbox_buffer_copy(vtctx, buffer, size);
|
||||
|
|
@ -943,9 +943,7 @@ static int videotoolbox_hevc_end_frame(AVCodecContext *avctx)
|
|||
HEVCContext *h = avctx->priv_data;
|
||||
AVFrame *frame = h->ref->frame;
|
||||
VTContext *vtctx = avctx->internal->hwaccel_priv_data;
|
||||
int ret;
|
||||
|
||||
ret = videotoolbox_common_end_frame(avctx, frame);
|
||||
int ret = videotoolbox_common_end_frame(avctx, frame);
|
||||
vtctx->bitstream_size = 0;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue