summaryrefslogtreecommitdiffstats
path: root/libao2/ao_lavc.c
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-09-29 15:04:40 +0200
committerRudolf Polzer <divverent@xonotic.org>2012-09-29 15:04:40 +0200
commit327a5d0ecf33dd44e5542f9128a26d7659864a79 (patch)
treeb17ad3c9b866863fb6aec11c84ef36762b67944f /libao2/ao_lavc.c
parent53c6a7480fae355562f24e207907bb985c685310 (diff)
downloadmpv-327a5d0ecf33dd44e5542f9128a26d7659864a79.tar.bz2
mpv-327a5d0ecf33dd44e5542f9128a26d7659864a79.tar.xz
encode: add options --ovfirst and --oafirst
This allows to define which stream is to be used as first output stream. This is useful because dvdauthor refuses VOB files where the audio stream is the first stream.
Diffstat (limited to 'libao2/ao_lavc.c')
-rw-r--r--libao2/ao_lavc.c2
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");