• Anton Khirnov's avatar
    h264: fix decoding multiple fields per packet with slice threads · 4a9bab3d
    Anton Khirnov authored
    Since we only know whether a NAL unit corresponds to a new field after
    parsing the slice header, this requires reorganizing the calls to slice
    parsing, per-slice/field/frame init and actual decoding.
    
    In the previous code, the function for slice header decoding also
    immediately started a new field/frame as necessary, so any slices
    already queued for decoding would no longer be decodable.
    
    After this patch, we first parse the slice header, and if we determine
    that a new field needs to be started we decode all the queued slices.
    4a9bab3d
h264_slice.c 92.9 KB