Re: [FFmpeg-devel] [PATCH 2/3] avformat/rawvideodec: Rework packet size calculation

2015-11-23 Thread Timothy Gu
On Sat, Nov 21, 2015 at 07:23:08PM +0100, Michael Niedermayer wrote: > width and height are unused after this > patch should be fine otherwise Fixed and pushed. Thanks! Timothy ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 2/3] avformat/rawvideodec: Rework packet size calculation

2015-11-21 Thread Michael Niedermayer
On Fri, Nov 20, 2015 at 09:34:12PM -0800, Timothy Gu wrote: > Calculate packet size only once, and propagate errors earlier in the chain. > > Also remove use of the deprecated av_image_get_buffer_size(). > --- > libavformat/rawvideodec.c | 17 + > 1 file changed, 9 insertions(+),

[FFmpeg-devel] [PATCH 2/3] avformat/rawvideodec: Rework packet size calculation

2015-11-20 Thread Timothy Gu
Calculate packet size only once, and propagate errors earlier in the chain. Also remove use of the deprecated av_image_get_buffer_size(). --- libavformat/rawvideodec.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libavformat/rawvideodec.c