Luca Barbato
a0562e5317
configure: Add a SONAME entry for the android target
...
In order to load libraries in Android they need to be unversioned.
The android target section was derived from the BSD ones, and they
that simply drop the SONAME
Android M requires to have a SONAME entry but unversioned.
2015-10-30 13:02:02 +01:00
Luca Barbato
f3aff31e5f
avpicture: Deprecate the single fields
...
Silence pointless warnings from gcc.
2015-10-27 21:53:26 +01:00
Luca Barbato
a9a6010637
avpacket: Provide an alloc and a free function for the struct
...
Pave the way for having the size of the AVPacket struct not part
of the ABI.
2015-10-26 18:00:55 +01:00
Luca Barbato
9b56d5c114
avpacket: Deprecate av_dup_packet
...
As documented, `av_dup_packet` is broken by design, `av_packet_ref`
matches the AVFrame ref-counted API and can be safely used instead.
2015-10-26 18:00:55 +01:00
Luca Barbato
d584533cf3
avformat: Rework add_to_pktbuf
...
Make it return an error and check its return value when it is used.
Simplify the usage by calling `av_packet_ref` internally when needed.
2015-10-26 18:00:55 +01:00
Luca Barbato
ce70f28a17
avpacket: Replace av_free_packet with av_packet_unref
...
`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`.
2015-10-26 18:00:55 +01:00
Luca Barbato
a5d4204309
avformat: Always return ref-counted AVPacket
...
And drop the av_dup_packet from the input_thread.
2015-10-26 18:00:55 +01:00
Luca Barbato
f0ca6ffa0a
avprobe: Unref the packet once it is used
...
Make sure it does not leak packets.
CC: libav-stable@libav.org
2015-10-26 18:00:54 +01:00
Luca Barbato
18f9308e6a
mpjpeg: Cope with multipart lacking the initial CRLF
...
Some server in the wild do not put the boundary at a newline
as rfc1347 7.2.1 states.
Cope with that by reading a line and if it is not empty reading
a second one.
Reported-By: bitingsock
2015-10-23 11:56:38 +02:00
Luca Barbato
22f4d9c303
img2enc: Make sure the images are atomically written
...
Users that want to generate a live-preview and serve it
would otherwise get partial images.
2015-10-23 11:55:14 +02:00
Luca Barbato
1ec72c6c68
libx264: Make sure the extradata are padded
2015-10-23 11:13:35 +02:00
Luca Barbato and Vittorio Giovara
ef3a3519c1
rawdec: Replace avpicture functions with imgutils
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-10-21 11:59:33 +02:00
Luca Barbato and Vittorio Giovara
fcc1280acb
rawenc: Replace avpicture functions with imgutils
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-10-21 11:59:07 +02:00
Luca Barbato
b52307933b
wrapped_avframe: Drop a now-unused variable
2015-10-16 17:45:09 +02:00
Luca Barbato
49d7fcd774
mpeg12: Unbreak building stale code
...
Broken in 2d59159508
2015-10-16 17:45:09 +02:00
Luca Barbato
c53e796f8b
thread: Provide no-op variants for pthread_once
2015-10-14 14:35:34 +02:00
Luca Barbato
08377f9c3b
dxva: Include last the internal header
...
It redefines _WIN32_WINNT, possibly causing problems with the
w32pthreads.h header.
2015-10-14 14:35:34 +02:00
Luca Barbato
34ed5c2e4d
avformat: Do not use AVFMT_RAWPICTURE
...
There are no formats supporting it anymore and it is deprecated.
Update the documentation accordingly.
2015-10-13 13:43:29 +02:00
Luca Barbato
b9ece15a01
nullenc: Use the wrapped avframe pseudo-encoder
2015-10-10 14:50:42 +02:00
Luca Barbato
d00a8fd417
yuv4mpeg: Use the wrapped avframe pseudo-encoder
2015-10-10 14:50:42 +02:00
Luca Barbato
00332e0a06
wrapped_avframe: Initial implementation
2015-10-10 14:50:34 +02:00
Luca Barbato
8b830ee9a2
avconv: Do not try to configure filter outputs without streams
...
Prevent a NULL-dereference.
CC: libav-stable@libav.org
2015-10-07 18:45:50 +02:00
Luca Barbato
d7a5a178c2
configure: When disabling a library disable all the related components
...
This way is sufficient to use the component specific configure variable
and not guard against the global library configure variable in code
that is outside it (e.g. checkasm).
2015-10-07 18:45:50 +02:00
Luca Barbato
74942685cb
hls: Check av_opt_set_dict return value as well
...
Bug-Id: CID 1320426
2015-10-01 13:51:13 +02:00
Luca Barbato
8ae1d87a24
build: Add support for known custom allocators
...
Makes slightly easier to use jemalloc and tcmalloc.
The two are quite common choices for profiling and debugging.
2015-09-30 21:42:26 +02:00
Luca Barbato
22cc57da64
rtpdec: Forward the memory failure
...
And avoid a memory leak.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-09-16 20:20:16 +02:00
Luca Barbato
570fcaf332
jpeg2000: Factor out prec init
...
Makes debugging a little simpler.
2015-09-14 14:50:19 +02:00
Luca Barbato
95a41311ac
jpeg2000: Factor out band stepsize initialization
2015-09-14 14:48:59 +02:00
Luca Barbato
7fb93eae43
jpeg2000: Factor out band initialization
2015-09-14 14:36:18 +02:00
Luca Barbato
1b709f23fb
jpeg2000: Refactor decode_packets
...
Move the packet-specific parsers in separate functions.
2015-09-14 14:31:25 +02:00
Luca Barbato
29b00f880f
jpeg2000: Templatize the frame writer
2015-09-14 14:28:03 +02:00
Luca Barbato
41bcc3d152
jpeg2000: Split codeblock decoding from the main tile decoding
...
That loop is completely stand-alone.
2015-09-14 14:26:54 +02:00
Luca Barbato
6536da7371
doc: Add travis badge
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-09-14 00:19:08 +02:00
Luca Barbato and Vittorio Giovara
285fe5b098
avfilter: Support both syntaxes for the scale filter
2015-09-13 17:34:45 +02:00
Luca Barbato
5788623d29
jpeg2000: Split codeblock decoding from the main tile decoding
...
That loop is completely stand-alone.
2015-09-11 18:19:39 +02:00
Luca Barbato
db53a2306f
jpeg2000: Do not warn about known and skippable markers
...
Matches the openjpeg behaviour.
2015-09-11 18:19:01 +02:00
Luca Barbato
9b5a4a9cce
mmvideo: Make sure the rle does not write over the frame boundaries
...
Bug-Id: 887
CC: libav-stable@libav.org
2015-09-11 18:19:00 +02:00
Luca Barbato
41ed749fe9
ogg: Do not try to use the parser if it is not present
...
Bug-Id: 886
CC: libav-stable@libav.org
2015-09-10 14:47:33 +02:00
Luca Barbato
7b02cb29d9
pixdesc: Document the component order
2015-09-10 12:08:57 +02:00
Luca Barbato
d0f7e4a57f
dxtory: Unify and rework the decoding routines
...
Do not make many assumption on the dimension of the slices and just
try to decode additional lines if there is enough data left.
Decodes all the samples kindly provided by ultramage.
2015-09-06 14:16:38 +02:00
Luca Barbato
a7e6fbd90e
dxtory: Factorize the buffer loading
...
And the checks nearby it.
2015-09-04 01:42:55 +02:00
Luca Barbato
6a6bc43f5f
dxtory: Factorize slice size checks
...
They are always the same.
2015-09-04 01:42:55 +02:00
Luca Barbato
5a1a9da8a7
mpegvideo: Drop a stray error message
...
The condition is not a failure.
2015-09-03 13:39:34 +02:00
Luca Barbato and Vittorio Giovara
0c7707610f
lavc: Add a lzf decompressor
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-09-02 21:56:22 +02:00
Luca Barbato
4dc9f00365
build: Skip libvpx.h if libvpx is not enabled
2015-08-31 21:37:18 +02:00
Luca Barbato
1a164e0a83
tools: Drop a stale header
2015-08-31 21:37:18 +02:00
Luca Barbato
b1abd2aaf9
vf_scale: Add an option to pass the scaler params
...
Reported-By: zehan@magicpony.technology
2015-08-26 12:13:23 +02:00
Luca Barbato
e176639bcb
webm: Explicitly select libvpx, libopus and libvorbis encoders
...
And update the preference for the newer codecs now that the libraries
seem stable and widespread enough.
Bug-Id: 695
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:47:43 +02:00
Luca Barbato
413d4e54a9
nvenc: Properly free the fifos
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:47:43 +02:00
Luca Barbato
2157df425b
hlsenc: Support outputting specific versions
...
Right now only version 2 and version 3 are supported.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:43:58 +02:00
Luca Barbato
e23f84d965
channel_layout: Add a 16channel default layout
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-23 21:44:38 +02:00
Luca Barbato
d5eab59a53
aac: Make sure to set err on the failure path
...
Bug-Id: CID 1308153
2015-08-23 21:44:38 +02:00
Luca Barbato
167ea1fbf1
xavs: Do not try to set the bitrate tolerance without a bitrate
...
Avoid a division by zero.
Bug-Id: CID 1257655
2015-08-23 21:44:38 +02:00
Luca Barbato
61d8fa2a1a
h264: Fix faulty call to avpriv_request_sample
...
Broken in f9ab4fe1f7
2015-08-22 01:42:19 +02:00
Luca Barbato
47b447aaff
imgutils: Fix a typo in avcodec_get_pix_fmt_loss
...
If the candidate does not have alpha and the source does have alpha
report the loss of alpha.
CC: libav-stable@libav.org
2015-08-21 12:03:36 +02:00
Luca Barbato
72839fce64
hlsenc: Use AV_TIME_BASE units for all the computations
...
Do not risk mixing different timebases.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-16 19:02:16 +02:00
Luca Barbato
0f562f5b83
h264: Do not print an error when the buffer has to be refilled
...
Partially amends 9469370fb3
2015-08-06 11:55:48 +02:00
Luca Barbato
e5997152f5
asf: Use time_t where needed
...
gmtime takes a time_t not an uint64_t.
2015-08-04 21:40:04 +02:00
Luca Barbato
98c9ade985
drawtext: Move the strftime expansion in a separate function
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 15:18:48 +02:00
Luca Barbato
fe026ba960
drawtext: Drop stray guards
...
There is a fallback for localtime_r and it is in use already.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 15:14:33 +02:00
Luca Barbato
4fee11ab05
png: Be more informative regarding signature errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 14:31:09 +02:00
Luca Barbato
979cb55103
hevc: Split the sei parsing in 3 functions
2015-08-01 15:45:50 +02:00
Luca Barbato
043f46f574
hevc: Use switch instead of if-nests in decode_nal_sei_message
...
Makes simpler to add support for more SEI types.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-01 15:34:45 +02:00
Luca Barbato
2cd841c077
hevc: Use a proper enum for the SEI values
...
And use the correct value for decoded_picture_hash.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-01 15:23:05 +02:00
Luca Barbato
0c73a5a53c
hls: Save and forward avio options
...
Make possible to send the custom headers and override the user agent.
Reported-by: BenWonder
2015-07-30 11:21:26 +02:00
Luca Barbato
5ae178539b
http: Add the trailing endlines if they are missing
...
Makes slightly easier the life of those want to use the option
from the command line
2015-07-30 11:21:26 +02:00
Luca Barbato
3ae0e721c7
checkasm: Always link statically
...
Checkasm needs to use internal symbols that should not be made public.
2015-07-21 23:22:42 +02:00
Luca Barbato
6b2b26e7af
dds: Decode using optimal slices sizes
...
Enjoy some cache locality and use less threads.
About the same speedup provided to HAP.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-21 12:14:25 +02:00
Luca Barbato
977105407c
hap: Decode using optimal slices sizes
...
Enjoy some cache locality and use less threads.
About 5x speedup (from 60ms to 12ms to decode a 4k frame).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-21 12:14:25 +02:00
Luca Barbato
219b39a71a
parseutil: Use non ambiguous aliases for uhd
...
uhd1 and uhd2 would be ambigous.
2015-07-21 11:43:44 +02:00
Luca Barbato
e93ca480c9
parseutil: Add more resolution aliases
...
Add DCI 2k and 4k and uhd1 and uhd2.
2015-07-20 04:05:48 +02:00
Luca Barbato
fc56868399
cosmetics: Reformat checkasm tests
2015-07-17 21:29:20 +02:00
Luca Barbato
e1319aa1c1
libx264: Add support for the MPEG2 encoder
2015-07-17 10:47:48 +02:00
Luca Barbato
4512ee78e1
mpegts: Mark the muxer as supporting variable fps
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-15 19:43:48 +02:00
Luca Barbato
c88c5eef53
hevc: Split the struct setup from the pps parsing
2015-07-15 19:39:44 +02:00
Luca Barbato
a5a6a786bf
mp3: Forward seeking errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Luca Barbato
32c8d89c03
hevc: Print the non-supported chroma_format_idc
...
And drop the spurious newline.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Luca Barbato
8e373fe048
hevc: Factor out the pixel format mapping from the sps parser
...
The function will grow larger as more formats are supported.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Luca Barbato
c1d647b15a
mp3: Make the seek more robust
...
Try to parse up to 4 packets to find the closest packet.
Reported-By: jan.schlueter@ofai.at
2015-07-11 18:45:45 +02:00
Luca Barbato
d80811c94e
riff: Use the correct logging context
2015-07-11 18:45:44 +02:00
Luca Barbato
355864ef7a
g726: Do not crash on user mistake
...
Properly report the sample rate as invalid
CC: libav-stable@libav.org
2015-07-11 18:45:44 +02:00
Luca Barbato
461b45efd0
lavc: Add nvenc.h to the skipheader
...
Unbreak make checkheaders
2015-07-09 21:34:57 +02:00
Luca Barbato
84b223cc6d
configure: Make the new qsv encoder depend on libmfx
...
Found-by: kropping
2015-07-09 00:20:27 +02:00
Luca Barbato
8fcd121b82
doc: Use the succinct syntax for the channelmap example
...
Mixing succinct and long syntax does not work.
2015-07-09 00:09:53 +02:00
Luca Barbato
c8b8271379
xcbgrab: Explicitly include xcb/shape.h
...
Found-By: Cheristheus
2015-07-06 20:00:34 +02:00
Luca Barbato
d09b4cce21
mpjpeg: Simplify using avio_printf
2015-07-04 00:46:44 +02:00
Luca Barbato
80f955c908
vda: Check the correct pointer for buffer allocation
...
CC: libav-stable@libav.org
Found-By: kropping
2015-07-03 01:58:32 +02:00
Luca Barbato and Vittorio Giovara
0a49a62f99
h263: Always check both dimensions
...
CC: libav-stable@libav.org
Found-By: ago@gentoo.org
2015-06-30 15:34:38 +02:00
Luca Barbato and Vittorio Giovara
6f4cd33efb
cosmetic: Reformat ff_h263_decode_mba
2015-06-30 15:34:38 +02:00
Luca Barbato and Vittorio Giovara
e95c7a6185
mov: Preserve the metadata even when bit-exactness is requested
...
Make sure to not write the custom `encoder` string in that case.
Bug-Id: 845
CC: libav-stable@libav.org
2015-06-30 15:34:38 +02:00
Luca Barbato
1b4c468477
riff: Validate the wav header size before trying to parse it
2015-06-28 17:32:40 +02:00
Luca Barbato
5bdfc17189
asf: Do not skip data streams
2015-06-28 17:10:54 +02:00
Luca Barbato
8a26ae5f94
mpjpeg: Check stream allocation
...
Bug-Id: CID 1308152
2015-06-28 10:27:19 +02:00
Luca Barbato
92fdc80cab
nvenc: Fix NV12 input
2015-06-26 22:18:24 +02:00
Luca Barbato and Vittorio Giovara
4d55484391
dds: Fix palette mode on big endian
...
Found-By: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-24 14:45:16 +01:00
Luca Barbato and Vittorio Giovara
2ecfd45164
Implement Snappy decompression
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Luca Barbato
61dc9d647c
udp: Fix local_port management
...
The default value for unset is -1, not 0.
Problem introduced in 66028b7ba6
2015-06-22 10:47:29 +03:00
Luca Barbato
8655c54160
libvpx: Support the vp9 extended profiles
...
Bump the minimum libvpx version to 1.3.0 and rework the configure logic
to fail only if no decoders and encoders are found.
Based on the original patch from Vittorio.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-21 16:27:18 +03:00
Luca Barbato
05bf3f54e6
libvpx: Do not set vp8 only parameters when encoding in vp9
2015-06-20 12:18:01 +03:00
Luca Barbato
c060d046aa
af_resample: Set the number of samples in the last frame
...
Otherwise trailing zeroes would appear.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-20 12:18:01 +03:00