[FFmpeg-devel] [PATCH v1] avcodec/mpeg12dec: switch to AVBufferRef buffer for a53 caption

Limin Wang lance.lmwang at gmail.com
Mon Dec 23 02:46:53 EET 2019


On Sun, Dec 22, 2019 at 05:37:21PM +0000, Kieran Kunhya wrote:
> On Sun, 22 Dec 2019 at 13:27, <lance.lmwang at gmail.com> wrote:
> 
> > From: Limin Wang <lance.lmwang at gmail.com>
> >
> > Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> > ---
> >  libavcodec/mpeg12dec.c | 73
> > +++++++++++++++++++++++++++-----------------------
> >  1 file changed, 40 insertions(+), 33 deletions(-)
> >
> 
> Does this fix a particular issue?
> My patch to H.264 fixed a particular case of field mode captions but this
> doesn't look like it fixes it?

No, it's just switch to the new reference buffer as H.264 and HEVC as it
has more benefit to export the data, I try my best to keep the function same.
One difference is keep the old_size and realloc process from H.264, I can't
sure whether it'll happed as I don't own such sample. 

Now I have tested with one mpeg2 with normal CC by showinfo only. If you
have old sample broken, please let me know.

> 
> Kieran


More information about the ffmpeg-devel mailing list