Diego Biurrun
0a41f47dc1
dv: Do not redundantly initialize struct members to zero.
13 years ago
Michael Niedermayer
337fa0dbe7
lavf: Do not compute the packet duration based on the bitrate if the frame_size can be determined.
...
This fixes issues when the bitrate is variable or inaccurate but the
frame size has not been determined yet.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b8afbbca9c
lavf: factor out determinable_frame_size()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
b7beabab4b
tiertexseq: set correct block_align for audio
13 years ago
Justin Ruggles
f9cf91d822
tiertexseq: set audio stream start time to 0
...
Update FATE test to reflect delayed video due to the file having audio-only
frames prior to the first frame with video.
13 years ago
Justin Ruggles
0883109b27
voc/avs: Do not change the sample rate mid-stream.
...
Also, set the time base based on the sample rate.
lavf-voc seek test updated to reflect slightly different seek points.
13 years ago
Justin Ruggles
4da374f8a9
segafilm: use the sample rate as the time base for audio streams
13 years ago
Justin Ruggles
ea289186f0
ea: fix audio pts
...
The time base is 1 / sample_rate, not 90000.
Several more codecs encode the sample count in the first 4 bytes of the
chunk, so we set the durations accordingly. Also, we can set start_time and
packet duration instead of keeping track of the sample count in the demuxer.
13 years ago
Justin Ruggles
01be6fa926
psx-str: fix audio pts
...
Each packet has 18 sectors with 224/channels samples in each sector.
13 years ago
Justin Ruggles
d0ab585074
vqf: set packet duration
...
Fixes timestamp calculation.
The FATE reference is updated because timestamp calculations are now more
accurate. Previous timestamps were based on average bit rate.
13 years ago
Justin Ruggles
101c369b7c
tta demuxer: set packet duration
13 years ago
Justin Ruggles
5a9b952201
thp: set audio packet durations
13 years ago
Justin Ruggles
5602a464c9
avcodec: add a Vorbis parser to get packet duration
...
This also allows for removing some of the Vorbis-related hacks.
13 years ago
Michael Niedermayer
f83687bc78
mpegts: fix stack array overread in read_sl_header()
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4a310a19de
mpegts: prevent get_bits64() from reading nonsense at the end.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e732d0f608
mpeg-ts: fix handling of size=0 SL headers.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Petri Hintukainen
23a5bf9db0
bluray protocol
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
1aa708988a
mpegts: Pad the packet buffer in handle_packet().
...
This allows it to be used with get_bits without the thread of overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
4df369692e
mpegts: Do not call read_sl_header() when no bytes remain in the buffer.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Ronald S. Bultje
9c239f6026
matroska: check buffer size for RM-style byte reordering.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
1697c29d75
rmdec: Honor .RMF tag size rather than assuming 18.
13 years ago
Anton Khirnov
56bf24ad78
r3d: don't set codec timebase.
...
It's not supposed to be set by demuxers.
Set avg_frame_rate and r_frame_rate instead.
13 years ago
Anton Khirnov
efec3bc65a
electronicarts: set timebase for tgv video.
...
The container has no timestamps and the framerate isn't stored in the
data either.
The decoder sets codec timebase to experimentally found value 1/15. Do
the same for the demuxer too, it should at least be better than the
default 1/90000.
13 years ago
Anton Khirnov
e39400c3a8
electronicarts: parse the framerate for cmv video.
13 years ago
Anton Khirnov
1bb3990b56
ogg: don't set codec timebase
...
Demuxers are not supposed to set it.
13 years ago
Anton Khirnov
1d3144c318
electronicarts: don't set codec timebase
...
Demuxers are not supposed to set it.
Set stream timebase and framerates instead (this is a cfr container with
no timestamps).
13 years ago
Anton Khirnov
10a6e0c346
avs: don't set codec timebase
...
Demuxers are not supposed to set it.
Set r_frame_rate and avg_frame_rate instead.
13 years ago
Michael Niedermayer
0b90db01b5
lavf: fix update_initial_durations() so it handles missing durations with the initial timestamp being known.
...
This fixes duplicate timestamps on mp2 in ts with non seekable input.
It also fixed the fate pva demux timestamps.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ingo Brückl
c05e2be9a2
mp3dec: Fix reading file size and frames in VBRI headers
...
The fields "Number of Bytes" and "Number of Frames" are mixed up. "Bytes"
come first, "Frames" behind.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Diego Biurrun
75c553eb26
rmdec: adjust printf format string specifier to fix warning
...
libavformat/rmdec.c:383: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘int64_t’
13 years ago
Martin Storsjö
984b914c55
rtpenc: Use MB info side data for splitting H263 packets for RFC 2190
...
This makes the packetization spec compliant for cases where one single
GOB doesn't fit into an RTP packet.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
929dd8c108
dxa: set audio stream time base using the sample rate
13 years ago
Justin Ruggles
aa831c4093
psx-str: do not allow seeking by bytes
13 years ago
Justin Ruggles
bdbf1fa405
asfdec: Do not set AVCodecContext.frame_size
13 years ago
Justin Ruggles
4bf6775e9d
vqf: set packet parameters after av_new_packet()
...
Otherwise the values are overwritten.
13 years ago
Martin Storsjö
07ec1f2140
rtpenc: Fix setting the max packet size
...
This fixes cases where the user had specified one desired MTU
via an option, and the protocol indicates another one.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
322537478b
Add a minor bump, changelog/APIchanges entry and some documentation for APIC support.
13 years ago
Anton Khirnov
2dfea12058
mp3enc: write attached pictures (APIC).
13 years ago
Anton Khirnov
c68148b1ea
mp3enc: move mp3_write_xing() further up in the file.
...
It will be need by new functions called from mp3_write_trailer().
13 years ago
Anton Khirnov
ba445f5557
id3v2enc: add a function for writing attached pictures.
...
Unused so far.
13 years ago
Anton Khirnov
24fe1a3b16
id3v2enc: fix writing frame sizes for ID3v2.3
...
Frame sizes in ID3v2.3 are not synchsafe, they are simply 32be numbers.
In practice this bug is not noticeable unless the frame size takes more
than 7 bits (which is almost never for text frames).
13 years ago
Anton Khirnov
411225aabc
id3v2enc: split ff_id3v2_write().
...
This will allow writing the tag in several steps, needed for writing
attached pictures.
13 years ago
Anton Khirnov
c199817748
id3v2enc: make id3v2_put_size take only an AVIOContext.
...
It has no need of full AVFormatContext.
13 years ago
Anton Khirnov
393fd0d89e
id3v2: remove unused ff_id3v2_read().
...
Rename ff_id3v2_read_all to ff_id3v2_read().
13 years ago
Anton Khirnov
079ea6ca5f
lavf: export id3v2 attached pictures as streams.
13 years ago
Anton Khirnov
dd2a4bcfd7
lavf: generic code for exporting attached pictures.
13 years ago
Anton Khirnov
a93b09cb45
id3v2: read attached pictures and export them in ID3v2ExtraMeta.
13 years ago
Anton Khirnov
b73ad74660
lavf: move CodecMime from matroska.h to internal.h
...
it will be useful for attached pictures in ID3v2
13 years ago
Anton Khirnov
eaea76d72c
swfdec: do not set codec timebase.
...
It is not supposed to be set outside of lavc.
Fixes a divide by zero when the stored framerate is 0.
13 years ago
Anton Khirnov
4f07f8196c
lavc: deprecate AVCodecContext.color_table_id.
...
It's currently only used as temporary storage by the mov demuxer. Make
it use a local variable instead.
13 years ago