Hendrik Leppkes
c802389393
h2645_parse: initialize the GetBitContext to the proper size
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Hendrik Leppkes
6eb1b40ad8
hevc: fix size condition in ptl parsing
...
When only one sublayer is present, no information is coded. Only when at least two
are present, all 8 sublayers are written.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Michael Niedermayer
fc6894770e
avcodec/m101: simplify 8bit code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
22d1148c77
avcodec/m101: remove unneeded zeroing of priv_data_size
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cbe265ccd7
avcodec/m101: Simplify if() condition
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
58b3e5606b
avcodec/avcodec: Move AV_CODEC_ID_M101 to the 2nd group of video codecs
...
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4155d5e06f
avcodec: add M101 decoder
...
Fixes Ticket 2611
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timo Rothenpieler
31ce01bdb9
avcodec/nvenc: don't set profile in lossless mode
9 years ago
James Almer
bd63ecec78
avcodec/dcadsp: use LOCAL_ALIGNED_32 instead of LOCAL_ALIGNED(32, ...)
9 years ago
Andrey Utkin
abb69a2f2b
avcodec: Add "sar" alias to "aspect" option of video encoders
...
It is impossible to pass "aspect" parameter to encoder from ffmpeg CLI
because option from lavc/options_table.h is eclipsed by option with same
name in ffmpeg_opt.c, which has different meaning (DAR, not SAR).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Christophe Gisquet
9c1aa14bf0
vc2enc: prevent random data
...
The slice prefix is 0 in the reference encoder and the decoder ignores it.
Writing 0 there seems like the best temporary solution.
The padding could have contained uninitialized data, but reference VC2
encoders put 0xFF there, hence the memset value.
Overall this allows producing bistreams with no random data for use by fate.
9 years ago
Paul B Mahol
c5d2d3dced
avcodec/alac: fix 20-bit support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Rostislav Pehlivanov
770d3c85af
vc2enc: do not print the lavc version if the bitexact flag is enabled
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
9 years ago
James Almer
fc1c836def
avcodec/hevc_parser: fix packet_split function name
...
Fixes compilation of hevc_parser without hevc_decoder
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Rick Kern
dc750194b6
lavc/videotoolboxenc: Set colorimetry values
...
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
c356b6865d
lavc/videotoolboxenc: Support pixel aspect ratio
...
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
9d8a38d20b
lavc/videotoolboxenc: Support for forced I-frames
...
Setting AVFrame.pic_type to AV_PICTURE_TYPE_I will force an I-frame.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
4b806081b2
lavc/videotoolboxenc: add concatentation properties
...
Add frames_before and frames_after as hints that there will be frames before
or after the frames produced in this session. This may help with
concatenation issues like bit rate spikes.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
ca429e7253
lavc/videotoolboxenc: Add realtime encoding property
...
Hint to the encoder that encoding should be done in real-time, even at the
expense of quality.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
272dd437bc
lavc/videotoolboxenc: Handle out-of-memory and fix memory leak
...
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
2fbf39382d
lavc/videotoolboxenc: Fix DTS
...
Some devices output an invalid DTS when B-frames aren't used. Using PTS for
the DTS in this case.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
abe05892be
lavc/videotoolboxenc: Fix AVCodecContext.has_b_frames usage.
...
Now set by the encoder, not used as an input parameter.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
645df43144
lavc/videotoolboxenc: Add entropy setting
...
Add an entropy setting to choose between CAVLC and CABAC.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
fbe0cf8ca7
lavc/videotoolboxenc: Require hardware encoding
...
Software encoding can be allowed by setting allow_sw to 1.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
0d4bf3074d
lavc/videotoolboxenc: Handle hwaccel format as input
...
Handle AV_PIX_FMT_VIDEOTOOLBOX.
This results in better energy usage and faster encoding, especially on iOS.
When the buffer comes from the media server, no memcpy's are needed.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
d7cf3610c2
lavc/videotoolboxenc: Use shared pixel buffer pool
...
This reduces the chance of a memcpy in the media server.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Paul B Mahol
66eb5b809a
avcodec/adpcm: fix decoding of stereo non 4-bit ADPCM IMA WAV
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
3395ad48fa
avcodec/adpcm: replace char/short/long with int8_t/int16_t/int
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
foo86
b7d267399b
avcodec/dca: convert to AVCRC
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
1ef267b83f
avcodec/h264: Put the removed SPS handling code back
...
reverts one hunk from 7966ddfc0b
The new code from 7966ddfc0b
only covers extradata based SPS
Fixes: ffplay -ss 13 58af5798-fa2c-42a2-997d-dc8e49de2d8a.flv
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Christophe Gisquet
7d453aaf65
wmalossless: allow calling madd_int16
...
This is done by actually handling the "prev_values" in the cascaded LMS data
as if it were int16_t, thus requiring switching at various locations the
computations.
9 years ago
Michael Niedermayer
df820af2c5
avcodec/error_resilience: Improve missing slice handling for mpeg2
...
Fixes: m702_2.avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
foo86
ce2f9fdb0a
avcodec/dca: fix sync word search error condition
...
This didn't actually check if sync word was found and always errored out
with "-err_detect explode" option enabled.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9fcb59c9bc
avcodec/options_table: fix strict compliance constant flags to match the strict field
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
deaf58abf2
avcodec/mjpegdec: Do not try to detect last scan but apply idct after all scans for progressive jpeg
...
Fixes: IMG-20160418-WA0002.jpg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Jan Sebechlebsky
0ff3489534
avcodec/mjpeg2jpeg_bsf: Check ff_bsf_get_packet success
...
This fixes ticket #5487 - mjpeg2jpeg bitstream filter causes
segmentation fault with header-less mjpeg.
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
foo86
1fee770a1c
avcodec/dca: move channel counter utility into dca.h
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
2df7d4fa45
avcodec/dca: move huffman data into separate object file
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
bc2fe36228
avcodec/noise_bsf: set correct size of .priv_data_size field
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
3187277ebb
avcodec/wmalosslessdec: Fix memset sizeof
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
52623ef785
avcodec/smc: Mark pixel pointer as const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
00ffbdfb68
lavc/fic: Do not warn about empty cursor.
...
Fixes ticket #5174 .
9 years ago
Carl Eugen Hoyos
47a11ff457
lavc/fic: Be less verbose for invisible cursor outside of video.
9 years ago
Clément Bœsch
9f3dd53050
lavc/srtenc: do not emit any subrip tags with text codec
...
Fixes presence of opening tags when running
ffmpeg -i x.ass -c text x.srt
Reported-by: Jean First <jeanfirst@gmail.com>
9 years ago
Clément Bœsch
bbf02f7d28
lavc: override decode return value only in case of error
...
Fixes Ticket #5350
Regression since 2941282124
.
9 years ago
Christophe Gisquet
532e937083
avcodec/wmalosslessdec: silence a sample request
...
16bits samples with CDLMS orders of 8 are currently unsupported, but have never
been encountered before.
However, 8 seems to be the most frequent, if not the only order used for 24bits.
In that case, the dsp functions are fine with handling order that are multiples
of 8, so silence the warning.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
8f4358888f
avcodec/wmalosslessdec: fix type for coeffs and lms_updates in cdlms struct
...
They should really be int16_t.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
foo86
b286ff69c0
avcodec/dcaenc: move channel reordering tables to dcaenc.h
...
DCA core decoder no longer uses fixed tables for channel reordering.
Move them into private encoder header (and drop ff_dca_ prefix).
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
de28e73cce
avcodec/dcaenc: reuse shared quant levels table
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
cb84c12fa2
avcodec/mpeg12dec: Print position in end mismatch error
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago