]> granicus.if.org Git - handbrake/commit
libhb: repair split packets in reader
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 10 Nov 2015 20:40:54 +0000 (12:40 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 10 Nov 2015 20:40:54 +0000 (12:40 -0800)
commit6fd35381a879def5e76f99cded43a2a3c265c333
tree55c62a71ff3bdf65ed5e3ff95af2be9995a3627a
parent598a40fc53002a9f5adeba8fc45e4f7a42df2e25
libhb: repair split packets in reader

We split PES packets when there is a PCR change in the middle of the
packet.  This works fine for audio and video where the decoder parses
the ES to find frame boundaries.  But it does not work for some decoders
such as PGS subtitles.  So mark split buffers and reassemble them in
reader after processing the PCR change.
libhb/common.c
libhb/common.h
libhb/internal.h
libhb/reader.c
libhb/stream.c