mirror of https://git.ffmpeg.org/ffmpeg.git
vp9_parser: handle zero-sized packets.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0e15a344c1
commit
9695fb2622
|
@ -45,6 +45,13 @@ static int parse(AVCodecParserContext *ctx,
|
||||||
VP9ParseContext *s = ctx->priv_data;
|
VP9ParseContext *s = ctx->priv_data;
|
||||||
int marker;
|
int marker;
|
||||||
|
|
||||||
|
if (size <= 0) {
|
||||||
|
*out_size = 0;
|
||||||
|
*out_data = data;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (s->n_frames > 0) {
|
if (s->n_frames > 0) {
|
||||||
*out_data = data;
|
*out_data = data;
|
||||||
*out_size = s->size[--s->n_frames];
|
*out_size = s->size[--s->n_frames];
|
||||||
|
|
Loading…
Reference in New Issue