Browse Source

avcodec/dnxhd_parser: Optimize insufficient buf size case

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.2
Michael Niedermayer 6 years ago
parent
commit
827faa18cf
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/dnxhd_parser.c

+ 4
- 0
libavcodec/dnxhd_parser.c View File

@@ -88,6 +88,10 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
return remaining;
} else {
dctx->remaining -= buf_size;
// Update variables for correctness, they are currently not used beyond here
state = -1;
dctx->cur_byte += buf_size - i;
break;
}
}
}


Loading…
Cancel
Save