Michael Niedermayer
bf52ad1e49
lavc: revert broken hunk from 1cd9c81ddb
...
This should fix fate failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
7bc533c41b
lavc/utils: fix a few case/punctuation inconsistencies in avcodec_open2()
12 years ago
Stefano Sabatini
1cd9c81ddb
lavc/utils: extend feedback provided by avcodec_open2()
12 years ago
Michael Niedermayer
d86ef54476
avcodec_align_dimensions2: add missing breaks
...
This should have just cosmetic effects
Fixes CID603265
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Ash Hughes
2470851f12
lavc: enable recursively using avcodec_open2/close.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Rafaël Carré
a25d912dca
avcodec_encode_audio(): fix invalid free
...
Since 2bc0de385
, AVFrame needs to be initialized
before calling avcodec_get_frame_defaults().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Diego Biurrun
52d113ee06
avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2()
...
Functions used across libraries should have avpriv_ and not ff_ prefixes.
12 years ago
Paul B Mahol
93931143fe
lavc: return s->get_buffer() error code if it errors out
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Luca Barbato
6d5600e855
avutil: add yuva422p and yuva444p formats
12 years ago
Anton Khirnov
50ba57e0ce
lavc: do not use av_pix_fmt_descriptors directly.
12 years ago
Michael Niedermayer
e0909ff158
lavc: Fix use of uninitialized field.
...
Fixes CID732297
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
3fbda309e5
avcodec: free extended_data instead address of it
...
Fixes CID732173.
12 years ago
Diego Biurrun
f75f4194d1
Restructure av_log_missing_feature message
...
Some invocations include a verb in the log message, others do not. Yet
av_log_missing_feature expects callers to provide a verb. Change the
function to include a verb instead and update the callers accordingly.
The result is a more natural function API and correct English in the
function invocations.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Justin Ruggles
37f701f1c3
avcodec: allow either planar or interleaved sample format when encoding mono
...
When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.
12 years ago
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
13 years ago
Anton Khirnov
12e1e83461
lavc: set channel count from channel layout in avcodec_open2().
...
Some decoders (e.g. nellymoser) only set channel_layout and do not set
channel count.
13 years ago
Diego Biurrun
0ae3ba8daa
avcodec: Drop long-deprecated imgconvert.h header
13 years ago
Michael Niedermayer
8deddc6961
avcodec_alloc_frame: dont zero the whole struct twice
...
cleaning it up is already done in avcodec_get_frame_defaults()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
a42aadabc6
lavc: add avcodec_free_frame().
...
Since an AVFrame now has malloced members (extended_data), it must have
a destructor.
13 years ago
Anton Khirnov
b437cec143
lavc: ensure extended_data is set properly on decoding
13 years ago
Anton Khirnov
2bc0de3858
lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()
13 years ago
Anton Khirnov
c084a975aa
lavc: use av_mallocz to allocate AVFrames.
...
Otherwise the frame is uninitialized, so avcodec_get_frame_defaults()
cannot determine whether to free extended_data.
13 years ago
Anton Khirnov
a83499b13b
lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults
...
AVFrame is used for both audio and video, so calling the argument 'pic'
is misleading.
13 years ago
Justin Ruggles
0ccf051a9d
avcodec: fix memleak in avcodec_encode_audio2()
...
Ensure that padded_frame is freed before returning when needed.
13 years ago
Luca Barbato
419ffb2390
avcodec: cleanup utils.c
13 years ago
Anton Khirnov
466b39efaf
lavc: replace AVCodecContext.encode with subtitle-specific callback
...
AVCodecContext.encode is currently used only for subtitles, encode2 is
used for audio and video.
13 years ago
Anton Khirnov
9f64c8219a
lavc: add const to private codec class initialization.
...
Silences a warning about discarding const.
13 years ago
Nicolas George
9dd8272431
lavc: set AVSubtitle.pts if possible.
...
If the packet has a PTS and the corresponding time base is known,
set the pts field of the decoded subtitle structure before the
call to the decoder. The decoder is still allowed to change the
PTS if necessary.
13 years ago
Michael Niedermayer
85c830331c
lavc: protect calls to frame_thread_encoder by HAVE_THREADS
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
097a909ea1
frame_thread_encoder: pass private options
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
c28d80f4c9
lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.
13 years ago
Anton Khirnov
0a0f19b577
lavc: add const to AVCodec* function parameters.
13 years ago
Michael Niedermayer
747774ece9
av_get_audio_frame_duration: fix ra144
...
Fixes Ticket1612
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
2d3acbfe8c
lavc: add const to AVCodecContext.codec_descriptor.
13 years ago
Nicolas George
9bb936a80e
lavc: reimplement avcodec_get_name with descriptors.
13 years ago
Michael Niedermayer
da74e883f1
lavc: add codec_descriptor field to AVCodecContext.
...
This can be used to avoid a time consuming lookup of the
descriptor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Stefano Sabatini
44bd69e9b9
lavc/utils: rename ff_init_buffer_info() pic parameter to frame
...
The new name is more expressive, given that the frame is not necessarily
a picture but may be an audio frame.
13 years ago
Stefano Sabatini
b99381e8b5
lavc/utils: generalize ff_init_buffer_info() and use it when seems feasible
...
Extend ff_init_buffer_info() to init audio frames as well as video
frames.
Avoid code duplication.
13 years ago
Stefano Sabatini
23fc4dd6e7
lavc: add channels field to AVFrame
...
This is required otherwise it is not always possible to guess the number
of channels from the layout, for example if the channel layout is
unknown.
13 years ago
Marton Balint
016a472009
avcodec: add decode_error_flags field to AVFrame
...
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
461f506f7b
lavc: set best_effort_timestamp for audio too.
13 years ago
Nicolas George
cd08900393
lavc: update pkt_duration for skipped samples.
...
Also: factor the the computation of the timestamp difference.
13 years ago
Nicolas George
0e18ac5611
lavc: warn when impossible to adjust timestamps for skipped samples.
...
It is likely to happen if pkt_timebase was not set.
13 years ago
Nicolas George
11ce1cf9a7
lavc: add debug info about skipped samples.
13 years ago
Paul B Mahol
1463bd902a
cosmetics: reindent after d3abbb1d1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Thomas Kühnel
f49ec1b404
lavc: add metadata to AVFrame
...
See thread:
Subject: [libav-devel] [PATCH 1/3] avcodec: add metadata to AVFrame
Date: Tue, 4 Oct 2011 00:19:51 +0200
13 years ago
Michael Niedermayer
aa32971d2b
lavc: adjust timestamp in case of skiping initial samples
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2fe186409b
lavc: skip initial silence when requested
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago