Merge commit 'd7b3ee9a3a
'
* commit 'd7b3ee9a3a
':
lavc: deprecate avcodec_get_frame_defaults().
Conflicts:
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
44967ab60a
4 changed files with 10 additions and 4 deletions
|
@ -1049,6 +1049,7 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en
|
|||
return fmt[0];
|
||||
}
|
||||
|
||||
#if FF_API_AVFRAME_LAVC
|
||||
void avcodec_get_frame_defaults(AVFrame *frame)
|
||||
{
|
||||
#if LIBAVCODEC_VERSION_MAJOR >= 55
|
||||
|
@ -1074,7 +1075,6 @@ void avcodec_get_frame_defaults(AVFrame *frame)
|
|||
av_frame_set_colorspace(frame, AVCOL_SPC_UNSPECIFIED);
|
||||
}
|
||||
|
||||
#if FF_API_AVFRAME_LAVC
|
||||
AVFrame *avcodec_alloc_frame(void)
|
||||
{
|
||||
AVFrame *frame = av_malloc(sizeof(AVFrame));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue