Mans Rullgard
94267ddfb2
ARM: clean up NEON put/avg_pixels macros
...
Although this adds a few lines, the macro calls are less convoluted.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
ca12401376
fate: split acodec-pcm into individual tests
...
this removes 2 redundant tests for pcm in mkv.
we can add the coverage back in later as fate-lavf tests if needed.
13 years ago
Reinhard Tartler
5089ce1b5a
swscale: #include "libavutil/mathematics.h"
...
this file uses the M_PI macro since
4e74187db2
, so include the correct header
directly.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years ago
Anton Khirnov
74e96eb77e
pmpdec: don't use deprecated av_set_pts_info.
13 years ago
Mans Rullgard
37fed0e635
rv34: align temporary block of "dct" coefs
...
This is needed for optimised transforms.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Reimar Döffinger
f28070a123
Add PlayStation Portable PMP format demuxer
...
Not yet complete, for demuxing AAC the AAC header must be generated
manually.
Possibly the decoder could accept the header as extradata to simplify
this.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Martin Storsjö
c3b05d2159
proto: Realign struct initializers
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7e58050590
proto: Use .priv_data_size to allocate the private context
...
This simplifies the open functions by avoiding one function
call that needs error checking, reducing the amount of
extra bulk code.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
9c6777bd93
mmsh: Properly clean up if the second ffurl_alloc failed
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
02490bf358
rtmp: Clean up properly if the handshake failed
...
This prevents memory leaks if this function returns an error.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6af354436c
md5proto: Remove the get_file_handle function
...
The private data pointer isn't a file handle, this protocol
doesn't have any file handle to return.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
1ca87d600b
applehttpproto: Use the close function if the open function fails
...
This should clean up leaked memory.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
abe20c59b9
http: Make sure proxyauth is initialized
...
This string will be passed to ff_http_auth_create_response
even if no proxy is used, resulting in reading uninitialized
memory. The other auth string is always initialized by
av_url_split.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
adfdcf87b1
vble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to be used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Michael Niedermayer
317ea97bff
vble: remove flags copy, its not used in any speed relevant code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Derek Buitenhuis
e46abbcf77
vble: merge len and val arrays
...
There's no reason to use two arrays for this.
Based off commit 2fea60c600
to FFmpeg by Michael Niedermayer.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Michael Niedermayer
0dd704dbd4
vble: remove unused variable len.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Martin Storsjö
c8f0e88b20
rtpdec: Templatize the code for different g726 bitrate variants
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Janne Grunau
bb8a6e03cc
rv40: move loop filter to rv34dsp context
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Miroslav Slugeň
06d7325ab1
rtpdec: Add support for G726 audio
...
This requires using a separate init function, since there
isn't necessarily any fmtp lines for this codec, so
parse_sdp_a_line won't be called. Incorporating it with the
alloc function wouldn't do either, since it is called before
the full rtpmap line is parsed (where the sample rate is
extracted).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
2583660664
rtpdec: Add an init function that can do custom codec context initialization
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
7bb3e62594
avconv: make copy_tb on by default.
...
I.e. on streamcopy set output codec timebase from input stream timebase
(as opposed to input codec timebase). This should be more sane, because
since the stream is not decoded, the input codec tb has no relation to
the timestamps of the copied packets.
13 years ago
Anton Khirnov
c98c1f434e
matroskadec: don't set codec timebase.
...
It's not supposed to be set outside of lavc.
13 years ago
Anton Khirnov
d3e3ffa501
rmdec: don't set codec timebase.
...
It's not supposed to be set outside of lavc.
Set r_frame_rate instead.
13 years ago
Anton Khirnov
741a05a293
avconv: compute next_pts from input packet duration when possible.
13 years ago
Anton Khirnov
2092232581
lavf: estimate frame duration from r_frame_rate.
...
If r_frame_rate is set, it should be more reliable for this than either
codec or stream timebase.
13 years ago
Anton Khirnov
91b412e786
avconv: update InputStream.pts in the streamcopy case.
...
This was broken in 2a651b719c
.
13 years ago
Aneesh Dogra
464ccb0144
indeo3: check per-plane data buffer against input buffer bounds.
...
Fixes : http://bugzilla.libav.org/show_bug.cgi?id=102
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Alex Converse
fdab793a46
avconv: Handle audio sync for non-S16 sample formats.
...
Also fix reporting of the number of samples added/dropped.
13 years ago
Aaron Colwell
39a7a5b8ab
pthread: don't increment index on zero-sized packets.
...
The next call to decode() will update from an invalid index, which will
either lead to a memcpy() where dest==src (2 threads), or lead to a
crash (>2 threads).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Alex Converse
ac47e014bb
adtsenc: Check frame size.
...
Inspired by work from: Michael Niedermayer <michaelni@gmx.at>.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Alex Converse
a27805189b
txd: Fix order of operations.
13 years ago
Mans Rullgard
b94a3b288e
APIchanges: fill in some blanks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
60084a1723
timer: fix misspelling of "decicycles"
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
c88ebdb42c
Eliminate pointless 0/NULL initializers in AVCodec and similar declarations.
13 years ago
Kostya Shishkov
1469f943ad
indeo3: cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Alex Converse
2b45222b6a
md5proto: Fix order of operations.
13 years ago
Alex Converse
999e7ebd23
dca: Replace oversized unused get_bits() with skip_bits_long().
13 years ago
Luca Barbato
1f948745c3
vc1: use an enum for Frame Coding Mode
...
Document it a little and possibly fix a bug in dxva2_vc1.
13 years ago
Luca Barbato
9270b8a3d1
doc: cleanup filter section
...
Use the @command{} tag when needed and cleanup the examples.
13 years ago
Aneesh Dogra
97980db487
indeo3: error out if no motion vector is set.
...
This fixes a crash on a corrupt bitstream (bugzilla #93 ).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Vitor Sessak
6b6ee58249
x86inc: Flag shufps as an floating-point instruction for the AVX emulation code.
...
Without this, code like "shufps m0, m1, m2, 0xaa" would not work in CPUs
not supporting SSE2.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Justin Ruggles
0df5e869cb
mpegaudio: do not use init_static_data() for initializing tables.
...
It is called once for each mpegaudio codec that is registered, which adds
significant overhead.
13 years ago
Mans Rullgard
d9ba767d61
musepack: fix signed shift overflow in mpc_read_packet()
...
Using an unsigned variable avoids problems with overflows.
There is further no need for a 64-bit intermediate here.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Alex Converse
028a2375e2
mov: Make format string match variable type.
13 years ago
Alex Converse
f11b0e9543
wmavoice: Make format string match variable type.
13 years ago
Kostya Shishkov
498605b4ad
vc1: select interlaced scan table by FCM element
...
Interlaced videos can contain progressive frames too and now wrong scantable
is selected for them.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Victor Vasiliev
12bc20502a
Generalize RIFF INFO tag support; support reading INFO tag in wav
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Cheng Sun
3f5aa7dfa6
pthread: track thread existence in a separate variable.
...
This fixes a compile error on mingw32 when using p->thread
directly (as if it were a pointer) to track thread existence,
because the type is opaque and may be a non-pointer.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago