summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Öman <andreas@lonelycoder.com>2008-01-09 06:22:32 +0000
committerAndreas Öman <andreas@lonelycoder.com>2008-01-09 06:22:32 +0000
commit8b389f15cd6fb06bb43c277253837e13e3728f2b (patch)
tree24c8c1a4af4ceeaaa8393a6574c3e5d100fdeea9
parent90527811d7db0da5d770235261c4b718b0869a99 (diff)
Correctly use output format stream index for bitstream filter when doing stream copy.
Originally committed as revision 11480 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 12db8a8c95..b69a84d63b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1266,7 +1266,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
if(av_parser_change(ist->st->parser, ost->st->codec, &opkt.data, &opkt.size, data_buf, data_size, pkt->flags & PKT_FLAG_KEY))
opkt.destruct= av_destruct_packet;
- write_frame(os, &opkt, ost->st->codec, bitstream_filters[ost->file_index][pkt->stream_index]);
+ write_frame(os, &opkt, ost->st->codec, bitstream_filters[ost->file_index][opkt.stream_index]);
ost->st->codec->frame_number++;
ost->frame_number++;
av_free_packet(&opkt);