File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,18 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
8787 dctx -> w = (state >> 32 ) & 0xFFFF ;
8888 } else if (dctx -> cur_byte == 42 ) {
8989 int cid = (state >> 32 ) & 0xFFFFFFFF ;
90+ int remaining ;
9091
9192 if (cid <= 0 )
9293 continue ;
9394
94- dctx -> remaining = avpriv_dnxhd_get_frame_size (cid );
95- if (dctx -> remaining <= 0 ) {
96- dctx -> remaining = dnxhd_get_hr_frame_size (cid , dctx -> w , dctx -> h );
97- if (dctx -> remaining <= 0 )
98- return dctx -> remaining ;
95+ remaining = avpriv_dnxhd_get_frame_size (cid );
96+ if (remaining <= 0 ) {
97+ remaining = dnxhd_get_hr_frame_size (cid , dctx -> w , dctx -> h );
98+ if (remaining <= 0 )
99+ continue ;
99100 }
101+ dctx -> remaining = remaining ;
100102 if (buf_size - i >= dctx -> remaining && (!dctx -> interlaced || dctx -> cur_field )) {
101103 int remaining = dctx -> remaining ;
102104
You can’t perform that action at this time.
0 commit comments