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.
This pattern is already present for the audio/video type-specific en-/decoders, and is necessary to call e.g.
Video::set_kind
to setpict_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.