Skip to content
Snippets Groups Projects
Commit d872fb0f authored by Martin Storsjö's avatar Martin Storsjö
Browse files

lavf: Reset the entry count and allocation size variables on av_reallocp failures


When av_reallocp fails, the associated variables that keep track of
the number of elements in the array (and in some cases, the
separate number of allocated elements) need to be reset.

Not all of these might technically be needed, but it's better to
reset them if in doubt, to make sure variables don't end up
conflicting.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 06ebc0bf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment