You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avconv: do not call avcodec_get_frame_defaults()
Strictly speaking it is not correct to call it on refcounted frames, in any case it is unnecessary, since filtered_frame is always unreferenced after poll_filter() returns.
This commit is contained in:
3
avconv.c
3
avconv.c
@@ -642,8 +642,7 @@ static int poll_filter(OutputStream *ost)
|
|||||||
|
|
||||||
if (!ost->filtered_frame && !(ost->filtered_frame = av_frame_alloc())) {
|
if (!ost->filtered_frame && !(ost->filtered_frame = av_frame_alloc())) {
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
} else
|
}
|
||||||
avcodec_get_frame_defaults(ost->filtered_frame);
|
|
||||||
filtered_frame = ost->filtered_frame;
|
filtered_frame = ost->filtered_frame;
|
||||||
|
|
||||||
if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&
|
if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&
|
||||||
|
Reference in New Issue
Block a user