avcodec/mpeg12enc: avoid floats in the aspect ratio info setup code
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 16 May 2014 16:47:42 +0000 (18:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 16 May 2014 17:42:50 +0000 (19:42 +0200)
commit7ebf90ff472d05c7179f202df8686d84adfcb3d2
tree6db9182c0b26ad2b21d97374bfadca9ba9b9dae3
parentb217e1b057d7125edc487a6c9b9e426770cd4cdc
avcodec/mpeg12enc: avoid floats in the aspect ratio info setup code

This fixes potential rounding issues with floats, and also
fixes a division by 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpeg12enc.c