Quoting Diego Biurrun (2016-02-16 23:11:04) > On Wed, Jan 13, 2016 at 10:21:51AM +0100, Anton Khirnov wrote: > > --- a/libavformat/rtpenc_jpeg.c > > +++ b/libavformat/rtpenc_jpeg.c > > @@ -40,17 +40,17 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const > > uint8_t *buf, int size) > > /* convert video pixel dimensions from pixels to blocks */ > > - w = (s1->streams[0]->codec->width + 7) >> 3; > > - h = (s1->streams[0]->codec->height + 7) >> 3; > > + w = s1->streams[0]->codecpar->width >> 3; > > + h = s1->streams[0]->codecpar->height >> 3; > > What happened to the +7 here?
Nice catch, seems to have been lost in the rebase. Fixed locally. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
