diff options
author | Clément Bœsch <u@pkh.me> | 2016-06-12 20:36:24 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-06-12 20:53:57 +0200 |
commit | 4df944920c2b92686751fa44e4ff7429eea1ff28 (patch) | |
tree | bf304567347c14e2faf3d0302f807537a9f63332 /libavcodec/videotoolbox.c | |
parent | 82d79970edb13daa469f50ba96629b25794e8dee (diff) | |
download | ffmpeg-4df944920c2b92686751fa44e4ff7429eea1ff28.tar.gz |
lavc/videotoolbox: fixes compilation after 1534ef87
Diffstat (limited to 'libavcodec/videotoolbox.c')
-rw-r--r-- | libavcodec/videotoolbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index 4dc843dd27..4d86251530 100644 --- a/libavcodec/videotoolbox.c +++ b/libavcodec/videotoolbox.c @@ -102,11 +102,11 @@ CFDataRef ff_videotoolbox_avcc_extradata_create(AVCodecContext *avctx) memcpy(p + 9, h->ps.sps->data, h->ps.sps->data_size); p += 9 + h->ps.sps->data_size; AV_W8(p + 0, 1); /* number of pps */ - AV_WB16(p + 1, h->pps.data_size + 1); + AV_WB16(p + 1, h->ps.pps->data_size + 1); AV_W8(p + 3, NAL_PPS | (3 << 5)); // NAL unit header - memcpy(p + 4, h->pps.data, h->pps.data_size); + memcpy(p + 4, h->ps.pps->data, h->ps.pps->data_size); - p += 4 + h->pps.data_size; + p += 4 + h->ps.pps->data_size; av_assert0(p - vt_extradata == vt_extradata_size); data = CFDataCreate(kCFAllocatorDefault, vt_extradata, vt_extradata_size); |