[FFmpeg-devel] [PATCH V3 2/3] avcodec/libx264: add support for ROI-based encoding
Derek Buitenhuis
derek.buitenhuis at gmail.com
Thu Dec 27 18:45:13 EET 2018
On 27/12/2018 11:06, Guo, Yejun wrote:
> + AVFrameSideData *sd = av_frame_get_side_data(frame, AV_FRAME_DATA_ROIS);
> + if (sd != NULL) {
Nit: `if (sd)` is convention.
> + qoffsets = (float*)av_mallocz_array(mbx * mby, sizeof(*qoffsets));
> + if (qoffsets == NULL)
Nit: `if (!qoffsets)` is convention.
Rest is OK, I think.
Whoever pushes the patch (or me, whatever) can fix the few style nits above.
- Derek
More information about the ffmpeg-devel
mailing list