[FFmpeg-devel] [PATCH v2 2/2] fftools/ffmpeg: Add stream metadata from first frame's metadata

Jun Li junli1026 at gmail.com
Tue May 7 01:44:46 EEST 2019


On Mon, May 6, 2019 at 3:04 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Am Mo., 6. Mai 2019 um 05:41 Uhr schrieb Jun Li <junli1026 at gmail.com>:
> > +    uint8_t* sd = NULL;
>
> Wouldn't it simplify the patch if this were a pointer to int32_t?
> Or is there a aliasing violation that can't be avoided?
>

Thanks Carl for review. Will address in next iteration.



> > +    if (entry) {
> > +        orientation = atoi(entry->value);
> > +        sd = av_stream_new_side_data(ist->st, AV_PKT_DATA_DISPLAYMATRIX,
> > +                                                sizeof(int32_t) * 9);
>
> Most of the time, sizeof(type) makes little sense, if you cannot use
> sizeof(variable),
> just put "4" there.
>

Thanks Carl for review. Will address in next iteration.



> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list