diff mbox

[FFmpeg-devel,2/2] ffmpeg: copy trailing_padding when using -acodec copy

Message ID 1471291987-2220-3-git-send-email-jtoohill@google.com
State Accepted, archived
Commit 7f386bbe2a7976e39475360800c54c7484ac2719
Headers show

Commit Message

Jon Toohill Aug. 15, 2016, 8:13 p.m. UTC
---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

Comments

James Almer Sept. 14, 2016, 3:18 a.m. UTC | #1
On 8/15/2016 5:13 PM, Jon Toohill wrote:
> ---
>  ffmpeg.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index bae515d..49a1b03 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -3001,6 +3001,7 @@ static int transcode_init(void)
>                  enc_ctx->audio_service_type = dec_ctx->audio_service_type;
>                  enc_ctx->block_align        = dec_ctx->block_align;
>                  enc_ctx->initial_padding    = dec_ctx->delay;
> +                enc_ctx->trailing_padding   = dec_ctx->trailing_padding;
>                  enc_ctx->profile            = dec_ctx->profile;
>  #if FF_API_AUDIOENC_DELAY
>                  enc_ctx->delay              = dec_ctx->delay;

This was apparently forgotten, so applied.
diff mbox

Patch

diff --git a/ffmpeg.c b/ffmpeg.c
index bae515d..49a1b03 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3001,6 +3001,7 @@  static int transcode_init(void)
                 enc_ctx->audio_service_type = dec_ctx->audio_service_type;
                 enc_ctx->block_align        = dec_ctx->block_align;
                 enc_ctx->initial_padding    = dec_ctx->delay;
+                enc_ctx->trailing_padding   = dec_ctx->trailing_padding;
                 enc_ctx->profile            = dec_ctx->profile;
 #if FF_API_AUDIOENC_DELAY
                 enc_ctx->delay              = dec_ctx->delay;