Jindrich Makovicka
b1c56eabe8
mpegtsenc: use AVFormatContext for AAC packetization
...
This removes the dependency on adts.c internals, and simplifies
adding other packetization formats.
Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jindrich Makovicka
d1a3a3d4b2
mpegtsenc: use AVERROR() for return codes
...
Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
e0eaf10049
oggdec: fix regression that caused reading the whole file during open
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5665674b55
lavf: use input keyframe flag when muxer does not provide keyframe flags.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
dbaf79c9d7
http: Add the url_shutdown function for https, too
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
5952564185
http: Simplify code by removing a local variable
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3cbcfa2dec
http: Clear the old URLContext pointer when closed
...
This fixes issues with opening http urls that have authentication
or redirects, introduced in commit e999b641
.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
f218121a4d
http: use ffurl_closep()
...
Fixes Ticket1383
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
edf96d631c
url: add ffurl_closep() which also sets the context pointer to NULL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f89aa6751c
lavf: use av_freep() in ffurl_close()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
2dbb8cc6a3
tcp: Check the return values from bind and accept
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
b7c3772be8
tcp: Try enabling SO_REUSEADDR when listening
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
641f4a885f
tcp: Check the return values from bind and accept
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
3c276ac0f8
dv-demux: dont mess with codec values
...
Fixes part of Ticket1369
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
303619d3ca
jacosub_probe: slightly increase the score to limit misdetection.
13 years ago
Clément Bœsch
908293d1bc
jacosub_probe: speedup by making only one call to sscanf
13 years ago
Oka Motofumi
5c742005fb
avisynth: Make sure the filename passed to avisynth is in the right code page
...
avisynth is a non-unicode application and cannot accept UTF-8
characters. Therefore, the input filename should be converted to
the correct code page that it expects.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
18b46a494e
oggparsevorbis: fix null ptr dereference
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Matthieu Bouron
320e537baf
mxfenc: support 50 and 60 frame rates
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cc4d80c99f
ipmovie_probe: speedup by avoiding memcmp() call
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ebfe0c6eb8
ac3_probe: speedup by checking for header earlier
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
76170f5373
yop_probe: check more fields to avoid detecting random data as yop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
57778f61d0
avidec: fix odd extradata size case.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
76853a3e0c
libavformat: ff_get_bmp_header: return esize too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
9613240f72
http: Pass the proper return code of net IO operations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
1876e7c0c2
http: Add 'post_data', a new option which sets custom HTTP post data
...
This allows doing http posts with a content-length header sent
in advance, avoiding chunked encoding.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
64bde80563
mp3/ac3 probe: search for PES headers to prevent probing MPEG-PS as MP3.
13 years ago
Clément Bœsch
2d52ee8a1a
lavf/microdvd: support events lasting to the next one.
...
Example:
{3350}{}this subtitle...
{3390}{}...continues up to...
{4000}{4500}this one.
{4600}{}and now...
{4800}{}...to the end of the presentation
13 years ago
Michael Niedermayer
e7cb161515
ape: Fix null ptr dereference with files missing a seekatable.
...
Such files are currently not supported as the table is used at several points
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5880d78873
movdec: Check count of stts/ctts elements instead of just the pointer.
...
Fixes overreading the array
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1b8741a684
4xm: fix division by zero caused by bps<8
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Philip Langdale
ea60a11e8e
movenc: Fix muxing of Apple Quicktime chapters. v3
...
There is basic support for muxing chapter information into the
Apple Quicktime format already, but there are two errors which
prevent correct detection on the player side.
1) A special apple 'text' atom needs to be included inside the
gmhd atom.
2) The *different* 'text' atom inside the 'stsd' atom needs a
proper header.
With these changes, the chapters are now picked up by Apple
players and reported correctly by tools like mediainfo and mp4chaps.
v3 Update: The stub TextSampleEntry creation is moved to where the
chapter track is created so it's now specific to this track.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
e999b641df
http: Add support for reusing the http socket for subsequent requests
...
Introduce ff_http_do_new_request(), a new function which sends a new
HTTP request, reusing the existing connection to the server.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
3bdb438e65
http: Add support for using persistent connections
...
Add a new AVOption 'multiple_requests', which indicates if we want
to use persistent connections (ie. Connection: keep-alive).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
875851294f
avienc: create xsub in avi files that are closer to whats in the wild
...
Fixes ticket1332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
65212e3ed9
mxfdec: remove unused last_index_duration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ab7d6cb8f7
Support decoding fourcc YVYU.
...
Based on work by ami_stuff.
Fixes ticket #1352
13 years ago
Martin Storsjö
6099543ad4
rtsp: Check for dynamic payload handlers if no static payload mapping was found
...
Some systems abuse the static payload types 35 or 36 (which
according to IANA are unassigned) for H264.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
f7c89705e4
avio: fix "discards const qualifier from pointer target type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
68c813081b
rtpenc_chain: Return an error code instead of just a plain pointer
...
Also check the return value in sapenc.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
93cef6f923
rtpenc_chain: Free the URLContext on failure
...
If an URLContext is passed in, its ownership is given to this
function, and is either owned by the returned AVFormatContext
on a successful return, or freed on failure.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
2dcb21a95d
rtpenc: Expose the ssrc as an avoption
...
This allows the caller to set it, and allows the caller to query
what it was set to.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
ami_stuff
ca8623e1a5
Support some BOXX codecs.
...
Fixes a part of ticket #1352 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
39e29aa019
cosmetics: Fix indentation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Luca Barbato
c6eeb9b7b6
rtmp: fix url parsing
...
The application component can have a subcomponent to specify the
application instance even if it doesn't have a ":" in the playpath.
13 years ago
Alex Converse
ed7bdd8647
movenc: Don't write the 'wave' atom or its child 'enda' for lpcm audio.
...
It's left over from stsd v0. QuickTime 7 no longer writes 'wave' or 'enda'
when 'lpcm' is the audio tag.
13 years ago
Samuel Pitoiset
177bcc9593
rtmp: Pass the proper return code in rtmp_handshake
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
bba287fdac
rtmp: Check return codes of net IO operations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
a4d3f3580b
rtmp: Return a proper error code instead of -1
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
08e93f5b46
rtmp: Check malloc calls
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago