Skip to content
  • Philippe Gorley's avatar
    encoder: merge common encoding code · 43f22d20
    Philippe Gorley authored and Sébastien Blin's avatar Sébastien Blin committed
    
    
    Refactors out the common code from video and audio encoding/flushing
    into a single method. This reuses code instead of duplicating it.
    
    The method is public in the hopes of being able to reuse MediaEncoder
    elsewhere in the codebase.
    
    Allow caller to specify the stream index for the future case that the
    AVFormatContext contains multiple streams (recording video and audio).
    
    Change-Id: Ieae52bc453ef66d141a40819ca10fedbd38d9a86
    Reviewed-by: default avatarSebastien Blin <sebastien.blin@savoirfairelinux.com>
    43f22d20