lavc/videotoolbox: fix sps/pps mistake introduced in 1534ef87
authorClément Bœsch <u@pkh.me>
Sun, 12 Jun 2016 18:45:43 +0000 (20:45 +0200)
committerClément Bœsch <u@pkh.me>
Sun, 12 Jun 2016 18:53:57 +0000 (20:53 +0200)
libavcodec/videotoolbox.c

index 4d86251..6bd850a 100644 (file)
@@ -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;