ffprobe: Dont clear AVFrame between uses.
The old API required this clearing in the past, the new API does not require it. Fixes memleak Regression introduced by 37a749012aaacc801fe860428417a6d7b81c103f Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
baeda2bf92
commit
565f786d1d
@ -1789,7 +1789,6 @@ static av_always_inline int process_frame(WriterContext *w,
|
|||||||
AVSubtitle sub;
|
AVSubtitle sub;
|
||||||
int ret = 0, got_frame = 0;
|
int ret = 0, got_frame = 0;
|
||||||
|
|
||||||
avcodec_get_frame_defaults(frame);
|
|
||||||
if (dec_ctx->codec) {
|
if (dec_ctx->codec) {
|
||||||
switch (dec_ctx->codec_type) {
|
switch (dec_ctx->codec_type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user