Paul B Mahol
6427c9ffee
swscale: add gbr(a)p16 output support
8 years ago
Michael Niedermayer
fbdf8f176e
ffserver: set format bitexact flag, eliminate warnings about it not being set
...
Tested-by: Reto Kromer <lists@reto.ch>
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Александр Слободенюк
3aa1ff30f3
doc/examples/transcode_aac: fix a typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Tobias Rapp
4d57ca51d7
ffmpeg: assert return value is initialized
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Carl Eugen Hoyos
d44af9a38e
lavfi: Fix aix compilation.
...
Rename hz in af_apulsator.c and avf_showspectrum.c as hertz.
The aix header sys/m_param.h defines hz as __hz.
8 years ago
Philip Langdale
4e6d1c1f4e
avcodec/vdpau_hevc: Fix potential out-of-bounds write
...
The maximum number of references is 16, so the index value cannot
exceed 15.
Fixes Coverity CID 1348139, 1348140, 1348141
8 years ago
Philip Langdale
5512dbe37f
avcodec/crystalhd: Handle errors from av_image_get_linesize
...
This function can return an error in certain situations.
Fixes Coverity CID 703707.
8 years ago
Reynaldo H. Verdejo Pinochet
b5c899ab5e
ffserver: fix broken HTML on generated status page
...
Dropped incompatible/obsoleted HTML tag attributes
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
8 years ago
Philip Langdale
fdb124001e
tools/coverity: Add model for av_realloc
...
Really should have done this last time. It should provide consistency
across our allocations and frees.
8 years ago
James Darnley
13d71c28cc
avcodec/h264: sse2 and avx 4:2:2 idct add8 10-bit functions
...
Yorkfield:
- sse2:
- complex: 4.13x faster (1514 vs. 367 cycles)
- simple: 4.38x faster (1836 vs. 419 cycles)
Skylake:
- sse2:
- complex: 3.61x faster ( 936 vs. 260 cycles)
- simple: 3.97x faster (1126 vs. 284 cycles)
- avx (versus sse2):
- complex: 1.07x faster (260 vs. 244 cycles)
- simple: 1.03x faster (284 vs. 274 cycles)
8 years ago
James Darnley
1dae7ffa0b
avcodec/h264: mmx 4:2:2 idct add8 function
...
2.87 times faster (1830 vs. 638 cycles)
8 years ago
James Darnley
815ea8c6cc
avcodec/h264: mmxext 4:2:2 chroma intra deblock/loop filter
...
2.1 times faster (401 vs. 194 cycles)
8 years ago
Andreas Cadhalpun
122190392b
ffserver: use codec time_base for stream
...
This fixes producing swf and rm files as done by ffservertest.
Reviewed-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Andreas Cadhalpun
7f034a02cd
tests: drop -d option from ffserver invocation
...
It randomly causes failures with an error like:
"Failed to set value '-f' for option 'd': Error number -920332800 occurred"
(The error number is different every time.)
Reviewed-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Andreas Cadhalpun
0bd227e31c
tests: print errors from ffserver
...
Not doing so makes debugging unnecessarily hard.
Reviewed-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Philip Langdale
5eb6852063
tools/coverity: Add models for av_mallocz and av_free
...
This should deal with some false positives, but might lead to
more of them depending on whether it realises that av_freep()
wraps av_free() or not.
8 years ago
Vittorio Giovara
115b834dcf
fate: Add test for mov displaymatrix
8 years ago
Vittorio Giovara
33f7f636ff
ffprobe: Fix displaying side data list only
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
7010ebdf1f
mov: Evaluate the movie display matrix
...
This matrix needs to be applied after all others have (currently only
display matrix from trak), but cannot be handled in movie box, since
streams are not allocated yet. So store it in main context, and apply
it when appropriate, that is after parsing the tkhd one.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Timo Rothenpieler
c2f3af57a5
avcodec/nvenc: mark intentional fall through
8 years ago
Timo Rothenpieler
7dafb3a25a
avfilter/vf_hwupload_cuda: fix potential leak
8 years ago
Timo Rothenpieler
52773a2c68
avutil/hwcontext_cuda: check for missing pixel format
8 years ago
Timo Rothenpieler
88281a5256
avfilter/vf_scale_npp: check ff_set_common_formats return value
8 years ago
Miroslav Slugeň
1d056dd855
avfilter/vf_scale_npp: move aspect ratio correction after av_frame_copy_props
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years ago
Miroslav Slugeň
f2dd6aee80
avcodec/nvenc: always reduce DAR width and height
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years ago
Philip Langdale
27038693bb
avcodec/nvenc: Delay identification of underlying format of cuda frames
...
When input surfaces are cuda frames, we will not know what the actual
underlying format (nv12, p010, etc) is at surface allocation time.
On the other hand, we will know when the input frames are actually
registered and associated with a surface.
So, let's delay format discovery until registration time, which is
actually how we handle other frame properties, such as dimensions.
By itself, this change doesn't allow for transcoding of 10bit
content from cuvid, but it reduces the problem to the hardcoding of
the sw format in ffmpeg_cuvid.c
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
8 years ago
Michael Niedermayer
8cbdaa4b01
ffserver: Add client requested urls to the status page
...
Fixes Ticket3791
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Andreas Cadhalpun
2c908f22c2
avidec: fix leaking extradata
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Michael Schenk
18b9466937
matroskadec: prevent access of elements after freeing
...
Using the decode interrupt feature of ffmpeg may cause crashes by
accessing previously freed pointers in matroska_read_close.
To prevent this reset nb_elem to zero after freeing the elements,
because ffmpeg normally tests for nb_elem.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Michael Niedermayer
2475858889
avcodec/flac_parser: Update nb_headers_buffered
...
Fixes infinite loop
Fixes: fuzz.flac
Found-by: Frank Liberato <liberato@google.com>
Reviewed-by: Frank Liberato <liberato@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Andreas Cadhalpun
c0175fa92b
idroqdec: fix leaking pkt on failure
...
The code calls av_new_packet a few lines above and the allocated memory
has to be freed in case of an error.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Paul B Mahol
94d3d98246
fate: update after addition of gray10 to lavc/raw
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Michael Niedermayer
bced37c155
tests/ffserver-regression: Check the status page too
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
606702ea34
ffsrever: Make the status page bitexact if any stream is bitexact
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
472fee91bc
ffserver_config: Setup codecpar in add_codec()
...
fixes segfault in the status page code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
dbe1878060
tests/ffserver.regression.ref: update ffserver checksums
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
6216127d0c
tests/ffserver-regression.sh: give wget a timeout and prevent retries
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
744a0b5206
avformat/idroqdec: Check chunk_size for being too large
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
9e9c2276c3
avfilter/vf_masked*: add gray10 and gray12 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
c9dcd25288
avfilter/vf_bitplanenoise: add gray10 and gray12 suppport
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
46752d6b12
avfilter/vf_extractplanes: add extract support for 10bit and 12bit formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
57ef0f0f17
avfilter/vf_waveform: add gray10 and gray12 support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
d56c7830c0
avcodec/raw: add gray10 support in nut
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Daniel Verkamp
e856ac2373
avcodec/msrledec: implement vertical offset in 4-bit RLE
...
The delta escape (2) is supposed to work the same in 4-bit RLE as in
8-bit RLE. This is documented in the MSDN Bitmap Compression page:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd183383(v=vs.85).aspx
The unchecked modification of line is safe, since the loop condition
(line >= 0) will check it before any pixel data is written.
Fixes ticket #5153 (output now matches ImageMagick for the provided sample).
Signed-off-by: Daniel Verkamp <daniel@drv.nu>
8 years ago
Michael Niedermayer
1e7f9b0ec6
tests: Fix running ffserver under qemu
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
c3f781c52a
tests/Makefile: Fix ffservertest dependencies
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
0dbee67700
ffserver: Remove last use of AVStream size
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
da38da4595
ffserver: Remove some deprecated API use related to codec/codecpar
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
75b436d8b6
ffserver: Remove use of AVStream as a intermediate to store parameters
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
c8b24a685a
ffserver: drop FeedData, its unused
...
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago