meh / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
461 stars 96 forks source link

feat(frame): allow deconstruction of type-specific frames #171

Closed tilpner closed 2 years ago

tilpner commented 2 years ago

This pattern is already present for the audio/video type-specific en-/decoders, and is necessary to call e.g. Video::set_kind to set pict_type when working with generic frames. The alternative would be to expose that setter on the generic frame, but that goes counter to having them separated by media type in the first place.