Michael Niedermayer
21c4393f1c
lavf/find_stream_info: make sure we decode at least one frame for DTS
...
The channel layout at the demuxer layer is commonly wrong and would
otherwise be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
61a84755a9
lavf: dont open a decoder at the top of find_stream_info before probing has finished
...
It could open the wrong decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Duncan Salerno
48cf0f1c18
http: only send range header when necessary
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Duncan Salerno
0a8cc1179a
http: larger buffer for long URIs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
rogerdpack
641c0eea0b
bitmap header lookup: add code comment
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
697b476c07
wav: Fix DTS detection
...
Fixes Ticket1474
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a9f522d1b7
lavf: document request_probe properly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a380f82c53
lavf: allow using request_probe as a score threshold to accept a codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
740c995288
lavfi: add asendcmd and sendcmd filters
12 years ago
Stefano Sabatini
7fe1ecefe1
lavfi/hue: simplify/fix setting logic in set_options()
...
Parse expression only when a new value is explicitly specified.
In particular, avoid double free in case an old expression value is
cached, it is set in the context, it is freed as the old value, and
finally the pointer stored in the context is freed again when the filter
is released.
12 years ago
Michael Niedermayer
eb949544ca
ffmpeg: fix 10l (use of uninitilaized variable)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
374033ee93
ffmpeg: remove now unneeded old *_codec_name code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8ccb56abee
ffmpeg/opt_output_file: extract subtitle codec name through new API
...
This should fix specifying subtitle codecs with the new syntax in some cases.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a4271f3d4e
ffmpeg: dont match unspecified media types in MATCH_PER_TYPE_OPT
...
This would change existing behavior, and should if done, done seperately.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3db4c88ac1
ffmpeg/opt_preset: update to new option API for reading codec names.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
bad953bc2d
ffmpeg: fix overriding codecs with the new syntax
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
0ccf051a9d
avcodec: fix memleak in avcodec_encode_audio2()
...
Ensure that padded_frame is freed before returning when needed.
12 years ago
Michael Niedermayer
8364bde02b
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
sipr: fall back to setting mode based on bit_rate.
Conflicts:
libavcodec/sipr.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
79bf1f0ad0
rawdec: fix "warning: assignment from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrew Wason
225efccefc
lavfi/buffersink: fix check on pixel_fmts in the opaque parameter
...
Fix programmatic selection of accepted pixel formats.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years ago
Stefano Sabatini
ab4ee9fd5e
tests: update fate-ffprobe test to make use of -bitexact flag
...
Should fix tests with --enable-small.
12 years ago
Stefano Sabatini
42047c3e86
ffprobe: reindent after the previous commit
12 years ago
Stefano Sabatini
4cd1addcc4
ffprobe: add -bitexact boolean option
...
The option is mostly useful to make ffprobe output independent from the
build, and in particular to fix FATE --enable-small failures.
12 years ago
Michael Niedermayer
07cdd39478
pnmdec: use explicit casts to remove const to avoid warning with clang
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
28e88a24f6
rtsp: fix "warning: ret may be used uninitialized in this function"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0079232299
rtsp: kill a pointer type warning (void **) vs. (AVFormatContext **)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8d45c001a8
flac_parser: fix fifo ptr wrap check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Loren Merritt
1b1b902e2c
hqdn3d: Fix out of array read in LOWPASS
...
Fixes ticket1752
Commit message by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
ea5bd7ea6f
lavf/oggdec: check for begin-of-stream flag in case of chained streams.
...
Fix Ticket #1617 , revealing a regression I introduced in 8f3eebd
.
We need to make sure no stream is added in between Ogg context save and
restore operations (because it would likely lead to a mismatch between
ogg->nstreams and AVFormatContext->nb_streams after the restore op).
This is the reason the ogg->state check is added in ogg_new_stream().
Before this patch, checking for ogg->headers was preventing this:
ogg->headers is always set before any ogg save/restore (though, it was
also preventing from creating the stream when necessary).
12 years ago
Reimar Döffinger
c54e00610f
sipr: fall back to setting mode based on bit_rate.
...
Not all applications (e.g. MPlayer) set block_align, and
when using a different demuxer it might not even be
easily available.
So fall back to selecting mode based on bit rate as before
if block_align has not useful value.
It can't be worse than failing to decode completely.
(cherry picked from commit 1d0d63052b
)
CC: libav-stable@libav.org
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years ago
Clément Bœsch
405ee405c9
ffmpeg: complete mov/mp4 based timebase hack with "f4v" format.
12 years ago
Matthieu Bouron
41f7e0649f
mxf: export ff_mxf_get_samples_per_frame to lavf
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
7bc70930dd
lavf/movenc: add F4V flavor.
12 years ago
Michael Niedermayer
406cdddbdd
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
libx264: add forgotten ;
matroskadec: fix a sanity check.
matroskadec: only return corrupt packets that actually contain data
lavf: zero data/size of the packet passed to read_packet().
ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code
ARM: align PIC offset pools to 4 bytes
ARM: swap source operands in some add instructions
configure: update tms470 detection for latest version
lavf probe: prevent codec probe with no data at all seen
motion_est: fix use of inline on extern functions
Conflicts:
libavcodec/motion_est_template.c
libavformat/matroskadec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
9543cd593e
ffprobe: print format long_name only if non-NULL
...
Fix possible crash when long_name is not defined (for example if
--enable-small).
12 years ago
Stefano Sabatini
3aa1b53256
lavfi/hue: set to NULL freed pointers
...
Possibly safer.
12 years ago
Stefano Sabatini
31aa5b1a78
lavfi/hue: fix crash when resetting the saturation expression
...
Previously when saturation was reinited, the old value was freed when
setting options, and freed again in PARSE_EXPRESSION().
12 years ago
Stefano Sabatini
0f40105aaa
ffprobe: print codec_long_name only when available
...
Avoid possible segmentation fault if codec_long_name is defined as
NULL (for example if --enable-small).
12 years ago
Anton Khirnov
e52e4fe10d
libx264: add forgotten ;
12 years ago
Anton Khirnov
87b017a298
matroskadec: fix a sanity check.
12 years ago
Anton Khirnov
bdb939ad73
matroskadec: only return corrupt packets that actually contain data
...
Fixes bug 372.
12 years ago
Anton Khirnov
1cc569ddda
lavf: zero data/size of the packet passed to read_packet().
12 years ago
Mans Rullgard
8995d34972
ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code
...
The Apple assembler refuses to assemble the 3-operand form
in Thumb2 even though it is valid syntax.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Mans Rullgard
cdb7db5acd
ARM: align PIC offset pools to 4 bytes
...
When building Thumb2 code, the end of a function, where the PIC
offsets are placed, need not be aligned. Although the values
are only accessed with instructions allowing unaligned addresses,
keeping them aligned is preferable.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Michael Niedermayer
fb96ac469a
nutdec: fix mixup of nb_streams and timebase_count
...
Fixes out of array read, should fix ffprove fate failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6ab1166c77
nutdec: fix type of intermediate variable for ts calculation.
...
Prior to this it could theoretically become negative and read
out of array.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3dc24600ba
vsrc_testsrc: Fix case without a specified duration
...
Fixes regression since 98f753ec51
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrey Utkin
cc07a7925e
Add av_copy_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrey Utkin
d33908a5fc
Move av_dup_packet() copy logic to separate procedure
...
Done to simplify next commit introducing av_copy_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a6ec1e49f6
matroskadec: matroska_parse_rm_audio: remove unused parameter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago