[FFmpeg-devel] [PATCH] lavc/videotoolbox: fixes compilation after 1534ef87
Clément Bœsch
u at pkh.me
Sun Jun 12 20:57:53 CEST 2016
On Sun, Jun 12, 2016 at 08:38:12PM +0200, Clément Bœsch wrote:
> ---
> untested
> ---
> libavcodec/videotoolbox.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
> index 4dc843d..4d86251 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);
Tested by a user on IRC (maru @ #mpv-devel) and applied with another
runtime fix
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/88528b86/attachment.sig>
More information about the ffmpeg-devel
mailing list