On Tue, Mar 21, 2017 at 03:36:39PM +0100, Paul B Mahol wrote: > Fixes #6214. > > Signed-off-by: Paul B Mahol <one...@gmail.com> > --- > libavcodec/dnxhd_parser.c | 65 > ++++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 58 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/dnxhd_parser.c b/libavcodec/dnxhd_parser.c > index 033b8ee..4f9bbce 100644 > --- a/libavcodec/dnxhd_parser.c > +++ b/libavcodec/dnxhd_parser.c > @@ -31,8 +31,24 @@ typedef struct { > ParseContext pc; > int interlaced; > int cur_field; /* first field is 0, second is 1 */ > + int cur_byte; > + int remaining; > + int w, h; > } DNXHDParserContext; > > +static int dnxhd_get_hr_frame_size(int cid, int w, int h) > +{ > + int result, i = ff_dnxhd_get_cid_table(cid); > + > + if (i < 0) > + return i; > +
> + result = ((h + 15) / 16) * ((w + 15) / 16) * > ff_dnxhd_cid_table[i].packet_scale.num / > ff_dnxhd_cid_table[i].packet_scale.den; result = AV_CEIL_RSHIFT(h, 4) * AV_CEIL_RSHIFT(w, 4) * ... or am I missing something? [...] -- Clément B.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel