diff options
author | agathah <ahu@nvidia.com> | 2015-01-21 08:53:29 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-21 15:59:35 +0300 |
commit | dac91bb4c3a7063bcf50eaff83512a0fa3588cce (patch) | |
tree | 57725012a8b7bf2b63c7e4eca8f8a54a8aecf2a3 /libavcodec/nvenc.c | |
parent | 47111d366dff9beeee6f536e4d815dc4e862d10e (diff) |
avcodec/nvenc: set repeatSPSPPS flag for streaming
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 26f010eab6..7d82d58c3c 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -683,6 +683,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx) ctx->encode_config.encodeCodecConfig.h264Config.h264VUIParameters.videoFullRangeFlag = avctx->color_range == AVCOL_RANGE_JPEG; ctx->encode_config.encodeCodecConfig.h264Config.disableSPSPPS = (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) ? 1 : 0; + ctx->encode_config.encodeCodecConfig.h264Config.repeatSPSPPS = (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) ? 0 : 1; nv_status = p_nvenc->nvEncInitializeEncoder(ctx->nvencoder, &ctx->init_encode_params); if (nv_status != NV_ENC_SUCCESS) { |