Janne Grunau
1cdcf043ca
segment: remove unnecessary <strings.h> include
13 years ago
Michael Niedermayer
dd2086140c
nutenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
17bbb818ae
amr: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
47f8303069
lavf/aviobuf: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Bradshaw
67703d64d7
lavf: cosmetic: format else with indentation
...
Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
608bda925a
lavf/{srt,microdvd}: correctly raise error on avformat_new_stream() error.
13 years ago
Martin Sliwka
9b6f2c7483
file: Fix handling of windows named pipes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
11153a9371
avio: Collect and print statistics of bytes read & seeks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
59c122b3b0
matroskadec: add assert on lack of overflow in pkt_size+offset
...
currently a overflow there should be impossible but future changes to
the code could easily introduce a bug that no longer limits the 2
values sufficiently so better protect it via av_assert.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4b7c52346a
matroskadec: change size check in matroska_decode_buffer() to unsigned
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
08169fc3d2
matroskadec: move lace_size check up so it catches all code pathes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
88a740afde
matroskadec: change assert to av_assert0()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Dale Curtis
71529bd8c5
Fix incorrect unsigned->signed conversion.
...
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
01a14ce042
riff: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9d87c8e6f8
rawdec: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
948e97a2cc
pcmdec: use av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
7dc747f50b
rtmp: Read and handle incoming packets while writing data
...
This makes sure all incoming packets are read and handled (and reacted
to) while sending an FLV stream over RTMP to a server. If there were
enough incoming data to fill the TCP buffers, this could potentially
make things block at unexpected places. For the upcoming RTMPT support,
we need to consume all incoming data before we can send the next
request.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d1beee0701
rtpdec: Don't require frames to start with a Mode A packet
...
While there is no reason for starting a frame with anything else
than a Mode A packet, some senders seem to consistently use Mode B
packets for everything. This fixes depacketization of such streams.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin T. H. Sandsmark
a5c1a0c070
asfdec: fix returned error codes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4a6d790a6f
nutenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
53eaca5d6b
mpegtsenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
8517e9c476
rtmp: Add a new option 'rtmp_buffer', for setting the client buffer time
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
9477c035a7
rtmp: Set the client buffer time to 3s instead of 0.26s
...
This factorizes existing code into a new function gen_buffer_time(),
which generates the client buffer time message and sends it to the
server.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
c2d38beab2
rtmp: Handle server bandwidth packets
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
9ff930aace
rtmp: Display a verbose message when an unknown packet type is received
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
0533868642
rtmp: Tokenize the AMF connection parameters manually instead of using strtok_r
...
This fixes builds on platforms without strtok_r (windows).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
0a9a225733
rtmp: Fix a possible access to invalid memory location when the playpath is too short.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
2a622c2369
lavf: add a "warning" when discarding a oddly backward subtitle or data starttime
...
Idea-by: ohsix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
47695b1d65
lavf: handle data like subtitles in start time calculation.
...
This fixes an issue with a crazy data track starting with a large
negative timestamp.
It could as well be solved in all user apps, but this is looking
attractively simpler ...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f91b635b52
rtmpproto: replace strtok_r by av_strtok its unavailable in mingw
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d9a9518fba
flvenc: use av_assert instead of assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
f862537de8
rtmp: Do not send extension for flv files
...
This fixes bugzilla bug #304 .
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
8ee3e1874e
rtmp: support connection parameters
...
Allow using connection parameters in order to append arbitrary
AMF data like "B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0" to the
Connect message. You can pass these parameters through the -rtmp_conn
option.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Clément Bœsch
20e46aafbd
mov: export orphan tmcd track metadata to global format metadata.
13 years ago
Clément Bœsch
1ec23d9c02
mov: copy timecode metadata from tmcd track to the related video stream.
...
Apple softwares seem not to add a tref for the timecode (the next commit
fixes this issue), but at least FFmpeg does.
This can be used to generate a sample that demonstrates the feature:
./ffmpeg -f lavfi -i testsrc \
-f lavfi -i mptestsrc \
-f lavfi -i rgbtestsrc \
-map 0 -map 1 -map 2 \
-metadata:s:0 timecode=00:00:00:12 \
-metadata:s:2 timecode=01:02:12:20 \
-t 10 -y out.mov
./ffprobe out.mov
The timecode metadata being transmitted to the video streams, it can be
kept while transmuxed/transcoded.
13 years ago
Clément Bœsch
0d96ec19eb
mov: parse tref atom.
13 years ago
Clément Bœsch
9fb2e234d0
movenc: add timecode track support.
13 years ago
Clément Bœsch
9846a9c701
riff: add ISMP/timecode tag.
13 years ago
Michael Niedermayer
91bdced363
mpegtsenc: prevent pcr_packet_period==0
...
a period of 1 is the smallest that makes sense
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
8aa93e9004
mov: set AVCodecContext.width/height for h264
...
This is required for correct cropping of files from Canon
cameras.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
c61c8536ef
lavf/bintext: allocate FF_INPUT_BUFFER_PADDING_SIZE for extradata
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
e400b95b32
bink: check av_mallocz() return value
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Carl Eugen Hoyos
8a880d6918
Fix latm muxer Makefile dependencies.
...
Found, analysed and tested by trac user Jamal.
Fixes part of ticket #1428 .
13 years ago
Carl Eugen Hoyos
b8e2dcd266
Fix jacosub muxer Makefile dependencies.
...
Found, analysed and tested by trac user Jamal.
Fixes part of ticket #1428 .
13 years ago
Michael Niedermayer
80485a4f9a
mpegtsenc: make pts/dts offseting optional
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a21c212681
swfenc: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
a8656cd425
mpegts: Remove disabled extension matching probe.
13 years ago
Michael Niedermayer
610a52647b
xmv: use av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
107b42388c
lavf: fix missing "parser not found" message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Matthieu Bouron
f6d952f584
mxfenc: write optional field dominance flag in picture description
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago