Merge pull request #397 from ferdnyc/frame-copy

Frame: Copy has_audio_data correctly in DeepCopy
This commit is contained in:
Jonathan Thomas
2020-01-02 17:45:32 -06:00
committed by GitHub
3 changed files with 152 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ void Frame::DeepCopy(const Frame& other)
width = other.width;
height = other.height;
channel_layout = other.channel_layout;
has_audio_data = other.has_image_data;
has_audio_data = other.has_audio_data;
has_image_data = other.has_image_data;
sample_rate = other.sample_rate;
pixel_ratio = Fraction(other.pixel_ratio.num, other.pixel_ratio.den);