Mercurial > libavformat.hg
comparison mpeg.c @ 475:8c9c99ccaa25 libavformat
ac3 bugfix, bug found by "Ben Cooley" <bcooley at dstreamtech dot com>
author | michael |
---|---|
date | Wed, 09 Jun 2004 00:38:52 +0000 |
parents | 334e08488ad1 |
children | 0fdc96c2f2fe |
comparison
equal
deleted
inserted
replaced
474:2846bb67dd8f | 475:8c9c99ccaa25 |
---|---|
941 } | 941 } |
942 stream->start_pts = new_start_pts; | 942 stream->start_pts = new_start_pts; |
943 stream->start_dts = new_start_dts; | 943 stream->start_dts = new_start_dts; |
944 stream->nb_frames++; | 944 stream->nb_frames++; |
945 if (stream->frame_start_offset == 0) | 945 if (stream->frame_start_offset == 0) |
946 stream->frame_start_offset = stream->buffer_ptr; | 946 stream->frame_start_offset = stream->buffer_ptr + 1; |
947 while (size > 0) { | 947 while (size > 0) { |
948 avail_size = get_packet_payload_size(ctx, stream_index, | 948 avail_size = get_packet_payload_size(ctx, stream_index, |
949 stream->start_pts, | 949 stream->start_pts, |
950 stream->start_dts); | 950 stream->start_dts); |
951 len = avail_size - stream->buffer_ptr; | 951 len = avail_size - stream->buffer_ptr; |