OSDN Git Service

vqf: Make sure sample_rate is set to a valid value
authorMartin Storsjö <martin@martin.st>
Fri, 27 Sep 2013 21:34:35 +0000 (00:34 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 29 Sep 2013 15:46:21 +0000 (18:46 +0300)
commit9277050e2918e0a0df9689721a188a604d886616
tree4edac7535036e4f6abb10273ec3b1e11ce0216ae
parent0767bfd1994c4bf22e167ffadb8f823a950aad18
vqf: Make sure sample_rate is set to a valid value

This avoids divisions by zero later (and possibly assertions in
time base scaling), since an invalid rate_flag combined with an
invalid bitrate below could pass the mode combination test.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/vqf.c