Carl Eugen Hoyos
237f13290b
movdec: Set frame_size for AMR
...
Earlier, sc->samples_per_frame was used for setting the frame size,
but all files don't have that set properly. The frame size is a
known constant for these codecs.
If frame_size isn't set, the mov/3gp muxer refuses to mux it.
This fixes stream copy of audio from
https://roundup.libav.org/file1248/Video_With_AMR-NB_Audio.3gp
to another 3gp file (roundup issue 2468).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
d31fb1a9e7
matroskadec: empty blocks are in fact valid.
13 years ago
Carl Eugen Hoyos
ed669c9bec
movenc: Set a correct packet size for AMR-NB mode 15, "no data"
...
These packets are valid packets, and consist of 1 byte (which
contains the mode bits).
This had been analyzed and reported by Igor Levin, igor d levin comverse com.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
b6d08f40aa
avformat: Add functions for doing global network initialization
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
183baeadca
avformat: Add the https protocol
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
558d192d23
avformat: Add the tls protocol, using OpenSSL or gnutls
...
Note, this protocol doesn't yet check verify the server
certificate against a local database of trusted CA root
certificates.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
1606e551ff
avformat: Initialize gnutls in ff_tls_init()
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
48e59ad8e7
avformat: Add ff_tls_init()/deinit() that initialize OpenSSL
...
If the application hasn't set up mutex callbacks, we set up
our own using pthreads (or w32pthreads).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
f6d3710096
avformat: Split out functions from network.h to a new file, network.c
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
894bc1d322
gsm demuxer: do not allocate packet twice.
...
fixes memleak with raw gsm demuxing.
13 years ago
Justin Ruggles
905de11907
flvenc: use first packet delay as global delay.
...
This keeps the streams sychronized. The packets must be interleaved per-DTS.
13 years ago
John Brooks
f011fcd67e
rtsp: add allowed_media_types option
...
Streams from RTSP or SDP that do not match an allowed type will
be skipped entirely, which allows video-only or audio-only
streaming from servers that provide both.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
87c57d807f
Create separate functions for the raw GSM demuxer.
...
Put the new raw GSM demuxer in its own file.
Fixes raw GSM demuxing.
13 years ago
Diego Biurrun
c6cd0e17f3
Replace vendor string in Ogg and FLAC muxers.
13 years ago
Diego Biurrun
2f5df0b12c
Replace ffmpeg references with more accurate libav* references.
13 years ago
Diego Biurrun
20566eb0f0
Replace outdated references to ffmpeg tool with avconv.
13 years ago
Diego Biurrun
124e28847b
Remove some stray unnecessary ffmpeg references.
13 years ago
Anton Khirnov
ec22979a1d
id3v2: fix type of ID3v2EMFunc.free()
13 years ago
Justin Ruggles
6ac34eed54
g726: use bits_per_coded_sample instead of bitrate to determine mode
...
This requires some workarounds in the WAV muxer and demuxer. We need to write
the correct bits_per_coded_sample and block_align in the muxer. In the
demuxer, we cannot rely on the bits_per_coded_sample value, so we use the bit
rate and sample rate to determine the value.
This avoids having the decoder rely on AVCodecContext.bit_rate, which is not
required to be set by the user for decoding according to our API.
13 years ago
Justin Ruggles
44d2a982ac
dsicin: fix several audio-related fields in the CIN demuxer
...
bits_per_coded_sample should be 8.
block_align is calculated incorrectly, but it is not needed anyway.
packet pts should be calculated in samples.
packet duration can be set.
13 years ago
Benjamin Larsson
69e7ad8dbc
mov: Avoid divide by zero in edit list dts handling
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Ronald S. Bultje
38a4be3fa7
lavf: use number of output pictures for delay checks.
...
This fixes false positives of has_codec_delay_been_guessed() for
streams where not every input picture generates an output picture,
such as interlaced H264.
13 years ago
Alex Converse
61856d06eb
probe: Restore identification of files with very large id3 tags and no extension.
...
Restore behavior of identifying files with huge id3 tags as
mp3 at AVPROBE_SCORE_MAX/4. This was broken in r25378 and subsequently
removed in r25929.
13 years ago
Alex Converse
7a773d4d59
probe: Remove id3 tag presence as a criteria to do file extension checking.
...
This only encourages our users to put id3v2 tags on non-mp3 files to opt
into extension based probing.
13 years ago
Alex Converse
ca65932bbf
mpegts: MP4 SL support
13 years ago
Alex Converse
c530267024
mpegts: MP4 OD support
13 years ago
Alex Converse
4682a1dc3a
mpegts: Add support for Sections in PMT
13 years ago
Alex Converse
fec2836483
mpegts: Replace the MP4 descriptor parser with a recursive parser.
13 years ago
Alex Converse
c3bc6096f2
mpegts: Add support for multiple mp4 descriptors
13 years ago
Alex Converse
476d04a56a
mpegts: Parse mpeg2 SL descriptors.
13 years ago
Alex Converse
77b5c82b49
isom: Add MPEG4SYSTEMS dummy object type indication.
13 years ago
Anton Khirnov
854eadccb6
lavf: add init_put_byte() to the list of visible symbols.
13 years ago
Janne Grunau
c12ef64d69
seek-test: free options dictionary after use
13 years ago
Janne Grunau
d88e9f1c07
seek-test: update to recent avformat api
13 years ago
Anton Khirnov
9a174562e4
lavf: move private fields in AVStream to the end at next bump.
13 years ago
Anton Khirnov
df968050ab
lavf: move private fields in AVFormatContext to the end at next bump.
13 years ago
Anton Khirnov
a2faa95151
lavf: make some seeking functions private
...
Specifically av_update_cur_dts(), av_seek_frame_binary() and
av_gen_search().
They are not supposed to be called outside lavf.
13 years ago
Janne Grunau
cf543c6574
iv8: assemble packets to return complete frames
13 years ago
Justin Ruggles
f540ca22c5
tta: check for extradata allocation failure in tta demuxer
13 years ago
Anton Khirnov
3d813e4c54
lavf: deprecate AVStream.stream_copy
...
It's only used in avconv, so it properly belongs to OutputStream struct
there.
13 years ago
Anton Khirnov
a75034300f
lavf: simplify by using FFMAX/FFMIN.
13 years ago
Anton Khirnov
f172132f82
mpegenc: add preload private option.
...
Deprecate AVFormatContext.preload.
13 years ago
Michael Karcher
16ad77b357
Move id3v2 tag writing to a separate file.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Michael Karcher
e71ebb1972
id3v2: fix doxy comment - 'machine byte order' makes no sense on char arrays
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Anton Khirnov
07e1256456
lavf: export some forgotten symbols with non-av prefixes.
13 years ago
Reimar Döffinger
f4b51d061f
flvdec: Do not call parse_keyframes_index with a NULL stream
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
5dd35b43f1
Move timefilter code from lavf to lavd.
...
It's only used in the JACK device.
Fixes linking shared lavd with JACK enabled.
13 years ago
Raivo Hool
b06df70755
mov: add support for hdvd and pgapmetadata atoms
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
5da35d1cb3
mov: rename function _stik, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Raivo Hool
80951f5cf6
mov: rename function _int8 to remove ambiguity, some indentation cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago