James Almer
77eb05a2f1
avcodec/h264_slice: Only call ff_h264_flush_change() on initialized contexts
...
Changed by committer to ensure context_initialized is reset
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
d9e1e08133
libavcodec/exr : fix decoding piz float file.
...
fix ticket #5674
the size of data to process in piz_uncompress, is now calc
using the pixel type of each channel.
the data reorganization, alos take care about the size of
each channel
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Benoit Fouet
879330c561
h264: make H264ParamSets sps const
9 years ago
Benoit Fouet
4cc1ce4a91
h264: straighten dimensions check ff_h264_decode_seq_parameter_set
...
The MBS only flag was not taken into account when checking macroblock dimensions.
Also removes the unneeded check in init_dimensions for slices.
9 years ago
Benoit Fouet
3e8cda1eb1
h264_ps: change decode_scaling_matrices so that it takes const {s,p}ps
...
In order to be able to make SPS const in H264ParamSets,
modify decode_scaling_matrices so that it returns if the scaling
matrix are present in the SPS, instead of altering the input SPS
structure.
9 years ago
Clément Bœsch
a2901472fe
lavc/h264_slice: properly forward positive "error" code
...
Fixes ./ffmpeg -skip_frame nokey -i h264/h264_intra_first-small.ts
Regression since c54e2740e1
9 years ago
Michael Niedermayer
0c50f6905f
avcodec/h264: Remove au_pps_id
...
This should not be needed anymore and simplifies the next merge
Requested-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
e6e8750e94
avcodec/h264: Remove current_sps_id
...
This should not be needed anymore and simplifies the next merge
Requested-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
f755aa5ebd
lavc: move 2 more BITSTREAM_READER_LE definitions
...
This was mentioned to be in ae753dbd0d
but
actually wasn't.
9 years ago
Matthieu Bouron
db0af7250a
lavc/mediacodecdec_h264: add missing NAL headers to SPS/PPS buffers
...
Fixes a regression introduced by 0cd5e281df
.
9 years ago
Michael Niedermayer
6cc4c42226
avcodec/ccaption_dec: Fix mixed declaration and statement.
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Aman Gupta
4448f16ef5
avcodec/ccaption_dec: implement tab offset commands
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
c5566f0a94
lavc/pnm_parser: disable parsing for text based PNMs
...
P1, P2, and P3 are respectively the text versions of PBM, PGM and PPM
files.
We can not obtain the buffer size using av_imgage_get_buffer_size() as
every pixel in the picture will occupy a random size between 16 and 32
bits ("4 " and "231 " are such example).
Ideally, we could look for the next header (or EOF) in the bytestream,
but this commit is meant to fix a decoding regression introduced by
48ac4532d4
.
Fix Ticket #5670
9 years ago
Matthieu Bouron
9eb3da2f99
asm: FF_-prefix internal macros used in inline assembly
...
See merge commit '39d6d3618d48625decaff7d9bdbb45b44ef2a805'.
9 years ago
Michael Niedermayer
e9394ca63d
avcodec/libopenjpegenc: Set numresolutions by default to a value that is not too large
...
Fixes issues with libopenjpeg 2.1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
8fb92ea7e2
avcodec: add YUY2 Lossless Codec decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
9981b70da5
avcodec/h264_sei: Do not skip subsequent SEIs on errors potentially caused by missing parameter sets.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timo Rothenpieler
888a5c7947
avcodec/nvenc: Bring encoder names in line with other encoders
9 years ago
Martin Storsjö
a590d344e3
omx: Don't return > 0 from omx_encode_frame
...
The encode function is supposed to just return 0 on success.
This stems from a mixup with the return value of decode functions.
Reviewed-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Aman Gupta
ee2a8f142b
avcodec/omx: fix deprecation warning for ff_alloc_packet
...
Tested-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
d96b8144c0
avcodec/exr: add missed hunks from previous exr commit
9 years ago
Martin Vignali
1e38791b7f
avcodec/exr: fix reading float channel when there is half and float channels in a file
9 years ago
Clément Bœsch
dfd0c0f981
lavc/neontest: fix constness in arm/aarch64 avcodec_open2() wrappers
9 years ago
Jing Yu
311a953c76
avcodec/ppc: fix broken build when compiling libavcodec with LLVM on PPC backend
...
This commit fixes a broken build when compiling libavcodec with LLVM
compiler. These assembly files use non-standard format that is only
supported by GCC compiler. It would be nice to use a common standard
format. With this patch, both GCC and LLVM can build and generate the
same objects.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
6935aaa748
avcodec/flac_parser: Increase FLAC_MAX_SEQUENTIAL_HEADERS by 1
...
Fixes Ticket5343
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
947daffa59
avcodec/libx264: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Matthieu Bouron
55816c9269
lavc/mediacodec: increase buffer dequeue timeout when the codec needs to be drained
...
Increase buffer dequeue timeout when the codec needs to be drained as it
could happen that no input buffer is available when we receive a null
packet for the first time (meaning we are unable to signal end of stream
and mark the codec as draining).
Fixes potential loss of last frames after sending a null packet.
9 years ago
Matthieu Bouron
b316ebf46d
lavc/mediacodec: rely on buffer flags to detect end of stream
9 years ago
Matthieu Bouron
30e3a27119
lavc/mediacodec: re-indent after previous commit
9 years ago
Matthieu Bouron
a71d518575
lavc/mediacodec: discard 0-sized buffers
...
Their only purpose is to carry the end of stream flag.
9 years ago
Derek Buitenhuis
a02766fb4d
avcodec: remove libutvideo wrapper support
...
The 10-bit decoding support is available now in native decoder.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
dccea0ed0d
avcodec/sheervideo: fix YbYr format decoding
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Clément Bœsch
aef2d3d2b5
lavc: fix previous merge
9 years ago
Michael Niedermayer
b0b3676e13
avcodec/flac_parser: Raise threshold for detecting invalid data
...
Fixes regression from Ticket5428
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
6c98398b0b
lavc/get_bits: add a logging context to check_marker()
...
Based on d338abb664
9 years ago
Michael Niedermayer
70d48accd8
avcodec/tests/options: Set timebase
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
85185578ce
lavc/qtrleenc: simplify FF_API_CODED_FRAME deprecation guard
9 years ago
Clément Bœsch
0491d6993a
lavc/error_resilience: remove unused skip_last_mv label
...
Unused since a7b8a6e704
9 years ago
Matthieu Bouron
df3484f87c
lavc/videotoolbox: fix avcC extradata creation
...
Fixes properly ticket #5638 .
Since 772ad7142d
PPS and SPS contain the
nal type byte.
This reverts commit b8d754c5d0
.
This reverts commit 8e47a99f57
.
9 years ago
Matthieu Bouron
0cd5e281df
lavc/mediacodecdec_h264: use ff_h264_decode_extradata to extract PPS/SPS
...
Fixes playback of HLS streams on MediaTek devices which requires PPS/SPS
to be set in their respective csd-{0,1} buffers.
9 years ago
Clément Bœsch
d16aefee5c
lavc/mmaldec: reduce some diffs with Libav missed in previous skipped merges
9 years ago
Anton Khirnov
58640fe89e
h264: handle frame recovery in h264_field_start()
...
This is a more appropriate place for this. H264Context.recovery_frame is
shared between frame threads, so modifying it where it is right now is
invalid.
9 years ago
Anton Khirnov
e26c64148b
h264: discard slices of redundant pictures right after parsing the slice header
...
Going through the whole decoder initialization process for a slice we
are not going to decode is unnecessary and potentially dangerous.
9 years ago
Anton Khirnov
6efc463858
h264: always set redundant_pic_count during slice header parsing
...
It is always checked in the surrounding code, so this make sure we don't
see a value from an old slice.
9 years ago
Anton Khirnov
606fb6c032
h264: call the hwaccel frame_start() from h264_field_start()
...
This is a more appropriate place for it.
9 years ago
Anton Khirnov
d1d7678040
h264: fix the check for mixed IDR/non-IDR slices
9 years ago
Anton Khirnov
b13fc1e344
h264: do not pass H264Context to h264_slice_header_parse()
...
This should make it more clear that this function does not need any
decoder-global state other than the parameter sets.
9 years ago
Anton Khirnov
996f13413b
h264: fix warnings in fill_filter_caches_inter()
...
The code does some weird casting to a 2-dimensional sub-array of
ref2frm. This is not necessary, since only one dimension is needed
there.
9 years ago
Anton Khirnov
bc7f426851
h264: drop tests whether the codec id is AV_CODEC_ID_H264
...
Those are unused remnants of the old SVQ3 code.
9 years ago
Anton Khirnov
8281cd5cb8
h264_cabac: drop an always true condition
9 years ago