Changeset 2c97594876f6e790dfcd0d19d9f9ccb0f9eb299a
- Timestamp:
- 07/02/07 23:06:31
(2 years ago)
- Author:
- Sigmund Augdal Helberg <sigmunau@videolan.org>
- git-committer:
- Sigmund Augdal Helberg <sigmunau@videolan.org> 1170885991 +0000
- git-parent:
[3ab9ffb0d03946fb8607136f933cf5875a712355]
- git-author:
- Sigmund Augdal Helberg <sigmunau@videolan.org> 1170885991 +0000
- Message:
Don't crash on messed up aspect ratios.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd3ce31e |
r2c97594 |
|
| 859 | 859 | } |
|---|
| 860 | 860 | |
|---|
| 861 | | if( p_vout->fmt_in.i_sar_num >= p_vout->fmt_in.i_sar_den ) |
|---|
| | 861 | if( p_vout->fmt_in.i_sar_num == 0 || p_vout->fmt_in.i_sar_den == 0 ) { |
|---|
| | 862 | msg_Warn( p_vout, "fucked up aspect" ); |
|---|
| | 863 | *pi_width = (int)( p_vout->fmt_in.i_visible_width * ll_zoom / FP_FACTOR ); |
|---|
| | 864 | *pi_height = (int)( p_vout->fmt_in.i_visible_height * ll_zoom /FP_FACTOR); |
|---|
| | 865 | } |
|---|
| | 866 | else if( p_vout->fmt_in.i_sar_num >= p_vout->fmt_in.i_sar_den ) |
|---|
| 862 | 867 | { |
|---|
| 863 | 868 | *pi_width = (int)( p_vout->fmt_in.i_visible_width * ll_zoom * |
|---|