summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-09 00:38:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-09 00:38:52 +0000
commit573ab01eb747801256c8e1fbebb1075911ad07ca (patch)
tree8918c128314ce115632282b036d42c49db171f96 /libavformat/mpeg.c
parent69de449af68eaccebb68d2069573d6a9c2a8919a (diff)
ac3 bugfix, bug found by "Ben Cooley" <bcooley at dstreamtech dot com>
Originally committed as revision 3209 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 03505af2f3..8a552450fa 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -943,7 +943,7 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
stream->start_dts = new_start_dts;
stream->nb_frames++;
if (stream->frame_start_offset == 0)
- stream->frame_start_offset = stream->buffer_ptr;
+ stream->frame_start_offset = stream->buffer_ptr + 1;
while (size > 0) {
avail_size = get_packet_payload_size(ctx, stream_index,
stream->start_pts,