• Martin Storsjö's avatar
    theora: Skip zero-sized headers · e33db35b
    Martin Storsjö authored
    This fixes a regression since d9cf5f51 with theora over RTP
    (possibly with other variants of theora as well).
    
    In theora over RTP, the second of the 3 headers turns out to be
    0 bytes long, which prior to d9cf5f51 worked just fine. After
    d9cf5f51
    
    , reading from the bitstream reader fails (since the reader
    wasn't initialized but returned an error if initialized with 0 bits).
    
    CC: libav-stable@libav.org
    Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
    e33db35b