[FFmpeg-devel] [PATCH v2 3/3] ffprobe: add support for logging gamma side data
wm4
nfxjfg at googlemail.com
Tue Sep 26 15:14:28 EEST 2017
On Mon, 25 Sep 2017 16:44:45 -0300
James Almer <jamrial at gmail.com> wrote:
> On 9/25/2017 4:28 PM, Rostislav Pehlivanov wrote:
> > Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
> > ---
> > ffprobe.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/ffprobe.c b/ffprobe.c
> > index b2e8949d9f..171f856c2d 100644
> > --- a/ffprobe.c
> > +++ b/ffprobe.c
> > @@ -2227,6 +2227,9 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
> > if (tag)
> > print_str(tag->key, tag->value);
> > print_int("size", sd->size);
> > + } else if (sd->type == AV_FRAME_DATA_GAMMA) {
>
> Check that sd->size >= sizeof(AVRational) as well.
It's guaranteed to be that size.
More information about the ffmpeg-devel
mailing list