Steven Liu
c34c0e3a64
avformat/hlsenc: support http method for hls fmp4 init file
...
Signed-off-by: Steven Liu <lq@onvideo.cn>
7 years ago
Steven Liu
02bf023afe
MAINTAINERS: modify the hlsenc description
...
change the hlsenc from hls encryption to hlsenc
Suggested-by: Aman Gupta <aman@tmm1.net>
Reviewed-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Steven Liu <lq@onvideo.cn>
7 years ago
Steven Liu
7e9cdd3f49
avformat/hlsenc: fix CID 1418106
...
fix the "Uninitialized scalar variable (UNINIT)" problem.
Signed-off-by: Steven Liu <lq@onvideo.cn>
7 years ago
Vittorio Giovara
6f15f1cdc8
pixdesc: Add API to map color property names to enum values
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years ago
Kaustubh Raste
bba9c1c6bb
avcodec/mips: Reduced conditional cases in avc inter lpf msa functions
...
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Kaustubh Raste
b5da07d434
avcodec/mips: Unrolled loops and expanded functions in avc put mc 10 & 30 msa functions
...
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Tatsuyuki Ishi
598e416840
GnuTLS: eat PREMATURE_TERMINATION error
...
GnuTLS is too strict on the SSL shutdown alert, and it's neither
mandatory in the spec or critical. As it's ignored in OpenSSL, we
should also suppress it in GnuTLS as well.
Ticket: #6667
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Anton Khirnov
5a3b602acd
avformat/cafdec: reject multichannel Opus streams
...
Multichannel Opus streams require channel mapping information in extradata.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Carl Eugen Hoyos
b4093e60c5
lavf/caf: Support demuxing Opus.
...
Introduced in macOS High Sierra and iOS 11.
7 years ago
Kaustubh Raste
e428e5ded6
avcodec/mips: preload data in hevc sao edge 0 degree filter msa functions
...
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Kaustubh Raste
f4ba85dc82
avcodec/mips: Fixed rnd_val variable to 6 in hevc uni mc msa functions
...
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Thomas Mundt
9777836670
MAINTAINERS: add myself for bwdif and (t)interlace
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
5480e82d77
avcodec/pngdec: Clean up on av_frame_ref() failure
...
Fixes: memleak
Fixes: 3203/clusterfuzz-testcase-minimized-4514553595428864
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Carl Eugen Hoyos
ca72cd137d
lavf/mpegts: Consider stream_type 0x0f just a hint towards AAC.
...
It is also used in the wild to signal latm.
Fixes ticket #6657 .
7 years ago
Carl Eugen Hoyos
b4b02477bd
lavfi/stereo3d: Set SAR for every output frame.
...
Fixes ticket #6672 .
7 years ago
Carl Eugen Hoyos
2f3a3a7e32
lavf/utils: Do not force chapter end time before chapter start.
...
Fixes ticket #6671 .
7 years ago
Carl Eugen Hoyos
5cb70381d9
lavd/kmsgrab: Remove the mapping for AV_PIX_FMT_RGB8.
...
The definitions are different: 3:3:2 vs 2:3:3.
7 years ago
James Almer
18516d3e69
avutil/hwcontext_dxva2: return an error when buffer allocation fails
...
This also prevents the use of an uninitialized variable.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Carl Eugen Hoyos
f952edaa73
kmsgrab: Add more DRM plane formats
7 years ago
Mark Thompson
b0ece2b31f
hwcontext_vaapi: Fix DRM format mapping
7 years ago
Mark Thompson
9f9625ea80
kmsgrab: Remove multiple-plane formats
...
The planes are unlikely to be contiguous, assuming they are results in
very broken output. (Tested with NV12/NV16 on Rockchip.)
7 years ago
Mark Thompson
22afa87a8e
kmsgrab: Fix DRM format definitions
...
All DRM formats are defined in terms of little-endian words, so RGB formats
like XRGB actually have the elements in the opposite order order in memory
to the order they are in the name.
This does not affect YUYV and similar YUV 4:2:2 formats, which are in the
expected order.
7 years ago
Mark Thompson
375cf55fe9
vaapi: Disable deprecation warnings around use of old struct vaapi_context
7 years ago
Hendrik Leppkes
b4ecf2b582
vp9: move VP9SharedContext back to the top of VP9Context
...
VP9SharedContext needs to be the first member so its properties can be
safely accessed from hardware accelerators, without the need to share
the full VP9Context.
Fixes ticket #6674 .
7 years ago
Henrik Gramner
18821e3ba1
x86/exrdsp: optimize ff_reorder_pixels_avx2()
...
Tested with "checkasm --test=exrdsp -bench"
Before:
reorder_pixels_c: 5187.8
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 331.3
After:
reorder_pixels_c: 5181.5
reorder_pixels_sse2: 377.0
reorder_pixels_avx2: 313.8
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Tobias Rapp
3ffd3b7f5f
avformat/mxfenc: cosmetic changes
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
7 years ago
Tobias Rapp
147bface1a
fate: add mxf_dv25/dvcpro50 regression tests
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
7 years ago
Tobias Rapp
35d6be199a
avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames
...
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
7 years ago
James Almer
3af1060319
avfilter/tinterlace: Simplify checks for lowpass filtering flags
7 years ago
Thomas Mundt
4492237e33
fate: add tinterlace lowpass filtering tests
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Carl Eugen Hoyos
3118e81f86
lavc/frame_thread_encoder: Do not mix variable declaration and code.
...
Fixes a warning:
ISO C90 forbids mixed declarations and code
7 years ago
James Almer
7323c896b2
checkasm: add an exrdsp test
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
98d7ad085e
avcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototype
...
Make dst be the first parameter and src const. It's more in line with the rest of the codebase.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Martin Vignali
9b8c1224d7
libavcodec/exr : add X86 SIMD for reorder_pixels
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Michael Niedermayer
08ec828de9
avcodec/vorbisenc: Fix mixed declaration and statements
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
d76838c1ad
avcodec/fits: Fix include type
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
0f5576a22b
avutil/imgutils: Fix warning: missing braces around initializer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Reimar Döffinger
a149fa97d9
avcodec/frame_thread_encoder: Fix AV_OPT_TYPE_STRING handling in avctx
...
This is the equivalent to what 7d317d4706
did for the codec-specific options.
av_opt_copy has specific handling so it's fine that we already copied
the whole context before.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years ago
Aman Gupta
73bf0f42e3
avformat/hlsenc: fix segfault when using -hls_segment_type fmp4 with -hls_segment_filename
...
previously, specifying -hls_segment_filename meant
s->base_output_dirname was never set, causing a segfault:
(lldb) bt
* thread #1 , queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0 : 0x00007fffbf7d82d0 libsystem_platform.dylib`_platform_strcmp + 80
frame #1 : 0x00000001005f4dcf libavformat.57.dylib`io_open_default(s=0x000000010481cc00, pb=0x0000000104806020, url=0x0000000000000000, flags=2, options=0x0000000000000000) at options.c:107
frame #2 : 0x0000000100528968 libavformat.57.dylib`hls_mux_init(s=0x000000010481cc00) at hlsenc.c:595
frame #3 : 0x00000001005273cb libavformat.57.dylib`hls_write_header(s=0x000000010481cc00) at hlsenc.c:1518
frame #4 : 0x00000001005c08d0 libavformat.57.dylib`write_header_internal(s=0x000000010481cc00) at mux.c:486
frame #5 : 0x00000001005c0774 libavformat.57.dylib`avformat_write_header(s=0x000000010481cc00, options=0x00000001029026e8) at mux.c:539
7 years ago
Thierry Foucu
42a41c3956
vf_fps: Fix memory leak introduced by eea64ef4
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Thomas Mundt
ed48e22748
avfilter/interlace: simplify code
...
Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Thomas Mundt
a7f6bfdc18
avfilter/interlace: prevent over-sharpening with the complex low-pass filter
...
The complex vertical low-pass filter slightly over-sharpens the picture. This becomes visible when several transcodings are cascaded and the error potentises, e.g. some generations of HD->SD SD->HD.
To prevent this behaviour the destination pixel must not exceed the source pixel when the average of the pixels above and below is less than the source pixel. And the other way around.
Tested and approved in a visual transcoding cascade test by video professionals.
SSIM/PSNR test with the first generation of an HD->SD file as a reference against the 6th generation(3 x SD->HD HD->SD):
Results without the patch:
SSIM Y:0.956508 (13.615881) U:0.991601 (20.757750) V:0.993004 (21.551382) All:0.974405 (15.918463)
PSNR y:31.838009 u:48.424280 v:48.962711 average:34.759466 min:31.699297 max:40.857847
Results with the patch:
SSIM Y:0.970051 (15.236232) U:0.991883 (20.905857) V:0.993174 (21.658049) All:0.981290 (17.279202)
PSNR y:34.412108 u:48.504454 v:48.969496 average:37.264644 min:34.310637 max:42.373392
Signed-off-by: Thomas Mundt <tmundt75@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Kaustubh Raste
1a85fb7e1e
avcodec/mips: Improve hevc sao band filter msa functions
...
Preload data in band filter 0-8 for better pipeline parallelization.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Kaustubh Raste
0105ed551c
avcodec/mips: Improve avc mc copy msa functions
...
Remove loops and unroll as block sizes are known.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Kaustubh Raste
e5a650e141
avcodec/mips: Improve avc lpf msa functions
...
Optimize luma intra case by reducing conditional cases.
Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com>
Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Clément Bœsch
6743351558
lavf/http: fix compilation without zlib
...
Regression since e2f8f14052
.
7 years ago
Clément Bœsch
1a08285f05
build: fix coreimage filters dependency to AppKit framework
...
AppKit is not present on iOS.
7 years ago
Matthieu Bouron
dd8ffb191f
lavc/mediacodec_wrapper: fix jni vaargs types
...
Fixes decoding on 32-bit devices with Android NDK >= 15.
7 years ago
Jacek Jendrzej
e2f8f14052
lavf/http: Reset compressed header flag, fix http 302 request
...
Fixes ticket #6404 .
Fixes ticket #6666 .
Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
7 years ago
Thierry Foucu
eea64ef4cf
vf_fps: when reading EOF, using current_pts to duplicate the last frame if needed.
...
Fix ticket #2674
Tested with examples from ticket 2674.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago