aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/videotoolbox.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-06-12 20:45:43 +0200
committerClément Bœsch <u@pkh.me>2016-06-12 20:53:57 +0200
commitaafdad1b454c1656e6ba08822de49fb7caf924f3 (patch)
treed4f35b7c7c01ce236350bcef32e49dffda4e43c5 /libavcodec/videotoolbox.c
parent4df944920c2b92686751fa44e4ff7429eea1ff28 (diff)
downloadffmpeg-aafdad1b454c1656e6ba08822de49fb7caf924f3.tar.gz
lavc/videotoolbox: fix sps/pps mistake introduced in 1534ef87
Diffstat (limited to 'libavcodec/videotoolbox.c')
-rw-r--r--libavcodec/videotoolbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index 4d86251530..6bd850a182 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -84,7 +84,7 @@ CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx)
H264Context *h = avctx->priv_data;
CFDataRef data = NULL;
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);
if (!vt_extradata)
return NULL;