2016-06-07 1:08 GMT+03:00 Timo Rothenpieler <t...@rothenpieler.org>:

> +    ost->enc_ctx->hw_frames_ctx = av_buffer_ref(ctx->hw_frames_ctx);
> +    ost->enc_ctx->pix_fmt = AV_PIX_FMT_CUDA;
> +
> +    if (!ist->hwaccel_ctx) {
> +        ist->hwaccel_ctx = ctx;
> +        ist->hw_frames_ctx = ctx->hw_frames_ctx;
> +        ist->dec_ctx->hw_frames_ctx = av_buffer_ref(ctx->hw_frames_ctx);
>

ist->hw_frames_ctx should get new reference too; also all the references
should be checked in case av_buffer_ref fails.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to