Anton Khirnov
78440c007c
lavc: add opt_find to AVCodecContext class.
...
Fixes encoder private options, which are broken now in ffmpeg, because
opt_default2() can't find them, thus making opt_default() to fail.
14 years ago
Alexander Strange
3803af22d8
h264: Complexify frame num gap shortening code
...
By observation it did not seem to handle prev_frame_num > frame_num.
This does not affect any files I have.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Uoti Urpala
c98b928fa7
intreadwrite.h: fix AV_RL32/AV_RB32 signedness.
...
The output type of the AV_RL32/AV_RB32 macros was signed int. The
resulting overflow broke at least some ASF streams with large
timestamps. Fix by adding a cast to uint32_t.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mike Scheutzow
aa15e68721
Fix decoding of mpegts streams with h264 video that does *NOT* have b frames
...
One of the causes of this bug is that the h264 parser defaults low_delay
to 1, but the h264 codec defaults low_delay to 0. Really Ugly.
After many hours of looking at this, I'm still not sure how has_b_frames
is *intended* to behave, but to me the implementation appears way more
complicated than it ought to be.
My patch relies on the encoder to set an optional field in the SPS. This
works for libx264 streams, but I'm not sure that all h264 encoders will
set it.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
7c44d716e7
Add minor bumps and APIChanges entries for lavf private options.
14 years ago
Anton Khirnov
55ba12e300
ffmpeg: deprecate -vc and -tvstd
...
They've been replaced by demuxer private options.
14 years ago
Anton Khirnov
8035f42968
ffmpeg: use new avformat_open_* API.
14 years ago
Anton Khirnov
50f2dfad67
ffserver: use new avformat_open_* API.
14 years ago
Anton Khirnov
e0518705c8
ffprobe: use new avformat_open_* API.
14 years ago
Anton Khirnov
d0e142bb68
ffplay: use new avformat_open_* API.
14 years ago
Anton Khirnov
9ba38229e5
cmdutils: add opt_default2().
...
It stores options in a dictionary to be passed to new open calls.
It will replace opt_default once all the pieces are in place.
14 years ago
Anton Khirnov
1b9b37b8a4
dict: add AV_DICT_APPEND flag.
14 years ago
Anton Khirnov
25de5958c8
lavf: add avformat_write_header() as a replacement for av_write_header().
...
It supports more convenient setting of AVOptions.
14 years ago
Anton Khirnov
603b8bc2a1
Deprecate av_open_input_* and remove their uses.
...
Deprecate the last remaining member of AVFormatParameters.
14 years ago
Anton Khirnov
05e84c95c7
lavf: add avformat_open_input() as a replacement for av_open_input_*
...
Add support for demuxer private options.
14 years ago
Anton Khirnov
dc59ec5e79
AVOptions: add av_opt_find() as a replacement for av_find_opt.
14 years ago
Anton Khirnov
7e83e1c511
AVOptions: add av_opt_set_dict() mapping a dictionary struct to a context.
...
This way the caller can pass all the options in one nice package.
14 years ago
Anton Khirnov
0b7ccad6bf
ffmpeg: don't abuse a global for passing frame size from input to output
...
It's broken with multiple files or video streams.
14 years ago
Anton Khirnov
10de86b882
ffmpeg: don't abuse a global for passing pixel format from input to output
...
It's broken with multiple files or video streams.
14 years ago
Anton Khirnov
62940bb42f
ffmpeg: initialise encoders earlier.
...
Fixes choosing supported samplerate and framerate.
14 years ago
Anton Khirnov
9446d75941
ffmpeg: merge output_codecs array into AVOutputStream members.
...
There's no point in keeping them separate.
14 years ago
Diego Biurrun
1d076f46a0
rtpenc_latm: Consistently use "Libav" in license boilerplate.
14 years ago
Martin Storsjö
d840733937
rtsp: Don't pass string pointer as format string to ff_url_join
...
In this case, the string that was passed couldn't contain
user-defined data and thus there was no risk for injection
bugs, but it's safer this way, if we later change the
content of the options string.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Kirill Zorin
6095388812
mmsh: fixed printf injection bug in mmsh request
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Anton Khirnov
7cbc2e60af
codec-regression: remove pointless -r options for dnxhd
14 years ago
Justin Ruggles
b203f65451
ac3enc: use correct alignment and length in channel coupling dsp functions.
...
This fixes a segfault when using the C version of ac3dsp.float_to_fixed24().
14 years ago
Anton Khirnov
a6286bda09
ffmpeg: don't abuse a global for passing framerate from input to output
...
It's broken with multiple files or video streams.
14 years ago
Anton Khirnov
8f3e999736
ffmpeg: don't abuse a global for passing channels from input to output
...
It's broken with multiple files or audio streams.
14 years ago
Anton Khirnov
d7ee44024c
ffmpeg: don't abuse a global for passing samplerate from input to output
...
It's broken with multiple files or audio streams.
This removes the default samplerate of 44100 for raw input, hence all
the FATE changes.
14 years ago
Mans Rullgard
88ff180ad6
ARM: update ff_h264_idct8_add4_neon for 4:4:4 changes
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
3636e791ec
swscale: use SwsContext for av_log when available
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
a60466dbc3
swscale: Remove HAVE_MMX from files that are only compiled with MMX enabled.
14 years ago
Diego Biurrun
97e057ff81
swscale: Fix compilation with --disable-mmx2.
...
Some MMX2 functions were being referenced without proper #ifdefs.
14 years ago
Ronald S. Bultje
4e05830205
swscale: remove misplaced comment.
...
The comment should have been placed only in
yuv2rgb48_X_c_template, not yuv2rgb48_1_c_template.
14 years ago
Ronald S. Bultje
0be3736796
ffmpeg: fix streaming to ffserver.
14 years ago
Ronald S. Bultje
9f63211175
swscale: split out RGB48 output functions from yuv2packed[12X]_c().
...
This is part of the Great Evil Plan to simplify swscale. Note that
you'll see some code duplication between the output functions for
different RGB variants, and even between packed-YUV and RGB
variants. This is intentional because it improves readability.
14 years ago
Mans Rullgard
d530e57944
build: move vpath directives to main Makefile
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
0af8a71d66
swscale: fix JPEG-range YUV scaling artifacts.
...
YUV planes were marked as uint16_t, but they contained signed data.
Fixes issue 1108 and 675.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
cf53c48615
build: move ALLFFLIBS to a more logical place
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e897a633cd
ARM: factor some repetitive code into macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jason Garrett-Glaser
11177a4d82
Fix SVQ3 after adding 4:4:4 H.264 support
14 years ago
Jason Garrett-Glaser
7b442ad918
H.264: fix CODEC_FLAG_GRAY
...
It was broken in 4:4:4, and still did chroma deblocking for no reason in 4:2:0.
14 years ago
Jason Garrett-Glaser
c90b94424c
4:4:4 H.264 decoding support
...
Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
14 years ago
Justin Ruggles
99477adc31
ac3enc: fix allocation of floating point samples.
...
sizeof(SampleType) is different for fixed and float encoders.
14 years ago
Diego Biurrun
35bdaf3d42
utils: Drop pointless '#if 1' preprocessor directive.
14 years ago
Justin Ruggles
38c304addd
ac3enc: remove empty ac3_float function that is never called
14 years ago
Justin Ruggles
e0cc66df61
ac3enc: split templated float vs. fixed functions into a separate file.
...
Function pointers are used for templated functions instead of needlessly
duplicating many functions.
14 years ago
Justin Ruggles
e754dfc0bb
ac3enc: dynamically allocate AC3EncodeContext fields windowed_samples and mdct
...
This will allow the same struct to be used for both the fixed and float ac3
encoders.
14 years ago
Justin Ruggles
36151b3e31
ac3enc: use function pointer to choose between AC-3 and E-AC-3 header output
...
functions.
14 years ago
Jason Garrett-Glaser
504811baea
Roll back 4:4:4 H.264 for now
...
Needs some ARM/PPC asm modifications.
14 years ago