diff options
Diffstat (limited to 'libao2/ao_lavc.c')
-rw-r--r-- | libao2/ao_lavc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/ao_lavc.c b/libao2/ao_lavc.c index f23f14d59e..d4523f0d54 100644 --- a/libao2/ao_lavc.c +++ b/libao2/ao_lavc.c @@ -405,6 +405,8 @@ static int encode(struct ao *ao, double apts, void *data) encode_lavc_write_stats(ao->encode_lavc_ctx, ac->stream); + packet.stream_index = ac->stream->index; + // Do we need this at all? Better be safe than sorry... if (packet.pts == AV_NOPTS_VALUE) { mp_msg(MSGT_ENCODE, MSGL_WARN, "ao-lavc: encoder lost pts, why?\n"); |