mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vertical align
Originally committed as revision 14972 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
977327c764
commit
274335e76c
@ -467,7 +467,7 @@ static int mpegps_read_packet(AVFormatContext *s,
|
||||
} else if (startcode >= 0x80 && startcode <= 0x87) {
|
||||
type = CODEC_TYPE_AUDIO;
|
||||
codec_id = CODEC_ID_AC3;
|
||||
} else if ((startcode >= 0x88 && startcode <= 0x8f)
|
||||
} else if ( ( startcode >= 0x88 && startcode <= 0x8f)
|
||||
||( startcode >= 0x98 && startcode <= 0x9f)) {
|
||||
/* 0x90 - 0x97 is reserved for SDDS in DVD specs */
|
||||
type = CODEC_TYPE_AUDIO;
|
||||
|
@ -99,7 +99,7 @@ static int put_pack_header(AVFormatContext *ctx,
|
||||
put_bits(&pb, 1, 1);
|
||||
put_bits(&pb, 15, (uint32_t)((timestamp >> 15) & 0x7fff));
|
||||
put_bits(&pb, 1, 1);
|
||||
put_bits(&pb, 15, (uint32_t)((timestamp) & 0x7fff));
|
||||
put_bits(&pb, 15, (uint32_t)((timestamp ) & 0x7fff));
|
||||
put_bits(&pb, 1, 1);
|
||||
if (s->is_mpeg2) {
|
||||
/* clock extension */
|
||||
@ -489,7 +489,7 @@ static inline void put_timestamp(ByteIOContext *pb, int id, int64_t timestamp)
|
||||
(((timestamp >> 30) & 0x07) << 1) |
|
||||
1);
|
||||
put_be16(pb, (uint16_t)((((timestamp >> 15) & 0x7fff) << 1) | 1));
|
||||
put_be16(pb, (uint16_t)((((timestamp) & 0x7fff) << 1) | 1));
|
||||
put_be16(pb, (uint16_t)((((timestamp ) & 0x7fff) << 1) | 1));
|
||||
}
|
||||
|
||||
|
||||
@ -869,7 +869,7 @@ static int flush_packet(AVFormatContext *ctx, int stream_index,
|
||||
|
||||
/* P-STD buffer info */
|
||||
if (id == AUDIO_ID)
|
||||
put_be16(ctx->pb, 0x4000 | stream->max_buffer_size/128);
|
||||
put_be16(ctx->pb, 0x4000 | stream->max_buffer_size/ 128);
|
||||
else
|
||||
put_be16(ctx->pb, 0x6000 | stream->max_buffer_size/1024);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user