You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/videotoolbox: fix sps/pps mistake introduced in 1534ef87
This commit is contained in:
@@ -84,7 +84,7 @@ CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
|
|||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
CFDataRef data = NULL;
|
CFDataRef data = NULL;
|
||||||
uint8_t *p;
|
uint8_t *p;
|
||||||
int vt_extradata_size = 6 + 3 + h->ps.sps->data_size + 4 + h->ps.sps->data_size;
|
int vt_extradata_size = 6 + 3 + h->ps.sps->data_size + 4 + h->ps.pps->data_size;
|
||||||
uint8_t *vt_extradata = av_malloc(vt_extradata_size);
|
uint8_t *vt_extradata = av_malloc(vt_extradata_size);
|
||||||
if (!vt_extradata)
|
if (!vt_extradata)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user