Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Dec 6, 2023
1 parent 4928000 commit d6aa9e3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion FFmpegKit
Submodule FFmpegKit updated 1230 files
16 changes: 8 additions & 8 deletions Sources/KSPlayer/AVPlayer/MediaPlayerProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ public enum MediaLoadState: Int {

// swiftlint:disable identifier_name
public struct DOVIDecoderConfigurationRecord {
let dv_version_major: UInt8
let dv_version_minor: UInt8
let dv_profile: UInt8
let dv_level: UInt8
let rpu_present_flag: UInt8
let el_present_flag: UInt8
let bl_present_flag: UInt8
let dv_bl_signal_compatibility_id: UInt8
public let dv_version_major: UInt8
public let dv_version_minor: UInt8
public let dv_profile: UInt8
public let dv_level: UInt8
public let rpu_present_flag: UInt8
public let el_present_flag: UInt8
public let bl_present_flag: UInt8
public let dv_bl_signal_compatibility_id: UInt8
}

public enum FFmpegFieldOrder: UInt8 {
Expand Down
14 changes: 7 additions & 7 deletions Sources/KSPlayer/MEPlayer/Filter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ class MEFilter {
completionHandler(inputFrame)
return
}
var ret = av_buffersrc_add_frame_flags(bufferSrcContext, inputFrame, 0)
while ret == 0 {
ret = av_buffersink_get_frame_flags(bufferSinkContext, inputFrame, 0)
if ret == 0 {
let ret = av_buffersrc_add_frame_flags(bufferSrcContext, inputFrame, 0)
if ret < 0 {
return
}
while av_buffersink_get_frame_flags(bufferSinkContext, inputFrame, 0) >= 0 {
// timebase = Timebase(av_buffersink_get_time_base(bufferSinkContext))
completionHandler(inputFrame)
av_frame_unref(inputFrame)
}
completionHandler(inputFrame)
// av_frame_unref(inputFrame)
}
}
}

3 comments on commit d6aa9e3

@skrew
Copy link

@skrew skrew commented on d6aa9e3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit causes a huge memory leak

@kingslay
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit causes a huge memory leak

你是用了那个filter会内存泄漏呢?

@skrew
Copy link

@skrew skrew commented on d6aa9e3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only videoFilters.append("yadif=mode=1:parity=-1:deint=1")

Please sign in to comment.