Skip to content
  • Wim Taymans's avatar
    dec: avoid making the buffer writable · 6444bd25
    Wim Taymans authored
    Set the caps right after allocation of the buffer because we know the buffer is
    writable then and we are correctly negotiated. Since ffmpeg keeps around
    references to frames, making the buffer metadata writable where it was done
    before pushing will always end up with a copy and that makes the sink do a slow
    memcpy all the time.
    6444bd25