Michael Niedermayer
12b1512e85
lavf/utils: Try to unwrap pts/dts so as to minimize wraps
...
Based on code by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
254917f078
lavf/utils: run update_initial_timestamps() outside some if()
...
This way it gets executed earlier and updated timestamps become available earlier.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
jamal
732dfc7660
lavf/ape: Fix stream duration calculation
...
Fixes ticket #1662
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
7011a42b1a
rtmp: support strict rtmp servers
...
In order to send or receive a stream FCPublish, FCSubscribe and _checkbw
are completely optional and often not implemented. releaseStream over a
non-existen stream might report an error instead of being silent.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Justin Greer
e16fda9236
mov: Change default aac priming fallback from 2112 to 1024
...
This fixes priming for faac
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Greer
37a15f3e66
mov: parse custom "----" Metadata
...
This fixes the priming samples for NERO AAC LC
Simplified-by: Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
26ec392a0e
lavf: remove unused AVStream pointer.
13 years ago
Clément Bœsch
3dba9e19c8
lavf: add const qualifier to AVCodecDescriptor pointer in is_intra_only().
...
Fix "assignment discards ‘const’ qualifier from pointer target type" warnings.
13 years ago
Michael Niedermayer
62527dc245
rmdec: parse logical-fileinfo, instead of creating phantom tracks
...
Fixes Ticket1090
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
19a61bf39d
rmdec: pass mime type to ff_rm_read_mdpr_codecdata()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
85a576775e
lavf: factor ff_free_stream() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3ac754b93b
hls: fix min DTS code, try #2
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bf606334ad
hls: fix EOF check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7123e9506b
hls: use av_compare_ts() instead of comparing apples to oranges.
...
Fixes Ticket983
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
ac45637324
lavf/nutenc: write stream metadata.
13 years ago
Nicolas George
454e37ce0c
lavf/nut: define fourcc DVBT for DVB_TELETEXT.
...
Allow "-map 0:s -c:s copy" to copy all subtitles streams.
13 years ago
Michael Niedermayer
ba2cf854d0
lavc: move AVRn to a seperate decoder.
...
The special cases in demuxers and decoders are a mess otherwise (and more
would be needed to support it fully)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
e35c0ee05c
lavf/segment: fix computation of M3U8 segment target duration
...
Use ceil on the max duration, rather than approximating it to the nearest
integer.
13 years ago
Michael Niedermayer
28ff17fa97
lavf: add use_wallclock_as_timestamps
...
This may fix Ticket730
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
92b8c9d89e
lavf/au: check bits per coded sample.
...
Without that, it would repeatedly produce empty packets
if the codec if forced to something invalid.
Fix trac ticket #1652 .
13 years ago
Mans Rullgard
edb5238ccb
libavformat: add const to AVCodec pointers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Stefano Sabatini
2d31ae2921
lavf/segment: change default value for segment_list_size option, from 5 to 0
...
This is technically a major compatibility break, but seems the most
natural default and what users would expect without reading the docs.
13 years ago
Stefano Sabatini
1c522e3868
lavf/segment: guess list type from list filename suffix
13 years ago
Stefano Sabatini
e5ae2f9126
lavf/segment: add M3U8 list support
...
Address trac ticket #1642 .
13 years ago
Stefano Sabatini
4a12d1e8e7
lavf/segment: compute max list segment duration
...
This is useful for the M3U8 format incoming patch.
13 years ago
Stefano Sabatini
769500c2a3
lavf/segment: create segment_list_open and close functions
...
Allow factorization for the incoming patches, and avoid code/logic
duplication.
13 years ago
Stefano Sabatini
d3a2a614bf
lavf/segment: fix bogus segment index rewrapping logic
...
Decouple segment index wrapping and segment count logic. The counter
should not be reset since it detects the segment increasing timeframe.
13 years ago
Stefano Sabatini
b89e00bd1c
lavf/segment: move file description to @file doxy
13 years ago
Stefano Sabatini
725213545d
lavf/avio: flush internal buffer when calling avio_close()
...
This seems the expected behavior.
13 years ago
Stefano Sabatini
63f57f8530
lavf/avio.h: doxygen avio_flush()
13 years ago
Anton Khirnov
15c71dfd03
swf(dec): replace CODEC_ID with AV_CODEC_ID
13 years ago
Anton Khirnov
e0aa5e772b
dvenc: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE
13 years ago
Michael Niedermayer
7e49474aa0
ffmenc: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
8337b5db96
rtmpdh: Do not generate the same private key every time when using libnettle
...
Replace mpz_random by mpz_urandomb with a random state initialization in
order to improve the randomness.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jordi Ortiz
a2dd4f7780
rtp: remove ff_rtp_get_rtcp_file_handle().
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jordi Ortiz
e7993ece9b
rtsp.c: use ffurl_get_multi_file_handle() instead of ff_rtp_get_rtcp_file_handle()
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jordi Ortiz
d6b9da1178
avio: add (ff)url_get_multi_file_handle() for getting more than one fd
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
cb5ab02a88
rtmp: Use int instead of ssize_t
...
Not all compilers support ssize_t (MSVC doesn't), and none of these
variables need to be larger than 32 bit.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jordi Ortiz
e5f2731c73
rtmp: Add support for receiving incoming streams
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
e701b0cf75
Support reading 16-channel lxf files.
...
Fixes ticket #1608 .
Reported, analyzed and tested by Gabriel Gerard.
13 years ago
Philip Langdale
6057de19b5
srtenc: Add timing-less "subrip" encoder.
...
Unsurprisingly, if a timing-less subrip decoder is desireable, an
encoder is as well. With this in place, we can move on to remove
the use of the old encoder/decoder with embedded timing and move
all timing handling the (de)muxer where they belong.
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Michael Niedermayer
b1b84b068d
lavf: minor bump for avformat_queue_attached_pictures()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
11f8f2c0f3
avformat: export queue_attached_pictures
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a39c5c4c6b
dv: fix null ptr dereference
...
Fixes Ticket1640
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
70766c2182
Add some more missing includes after removing the implicit common.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
93f257db6b
rtmp: Automatically compute the hash for SWFVerification
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
635ac8e1be
rtmp: Add support for SWFVerification
...
Specifies how the server verifies client SWF files before allowing the
files to connect to an application. Verifying SWF files is a security
measure that prevents someone from creating their own SWF files that can
attempt to stream your resources.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
6093960ae3
movdec: Try to recover from overreading atoms
...
Fixes Ticket1596
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
fb7e78089b
rtmp: Gracefully ignore _checkbw errors by tracking them
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
8b6a5a7923
rtmp: Do not send _checkbw calls as notifications
...
The _checkbw calls were changed to use transactionId 0 in commit
82613564
so that servers would not return _result/_error about it.
While this is the strict interpretation of the spec, there are
servers that return _error about it, even if transactionId was 0.
The latest version of EvoStream Media Server (the commercial version
of crtmpserver) behaves properly as described, i.e. returning an
_error normally but not returning anything when using transactionId
0. The latest version of crtmpserver (right now at least) doesn't
behave like this though, it returns an error even if transactionId
was 0.
There are also other servers that return errors even if transactionId
is set to 0. Therefore set a proper transaction id so that the invoke
can be tracked and the error properly ignored instead.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago