avcodec/utils: check sar only when width/height are set
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jun 2014 21:02:52 +0000 (23:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jun 2014 21:02:52 +0000 (23:02 +0200)
commitfe43facd659f4bf04871d7736701011ebad98932
tree4367e82239b2ea69ae9baa0f1f0693d28c911e9b
parent0dceefc5fa81a6c851b51acab695a8c149ec8e3b
avcodec/utils: check sar only when width/height are set

This fixes loosing the perfectly valid SAR when width=height=0

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