Changeset 88e31f14f1b5bc41d1f2be07e4623b52623b746a
- Timestamp:
- 07/20/07 14:46:02
(1 year ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1184935562 +0000
- git-parent:
[4a1b6b00bae98767ddf5ae84c571859cb51be630]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1184935562 +0000
- Message:
Don't scale when original widht/height is zero.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4d4eb33 |
r88e31f1 |
|
| 568 | 568 | if( p_spu->p_text ) |
|---|
| 569 | 569 | { |
|---|
| 570 | | if( p_subpic->i_original_picture_height > 0 && |
|---|
| 571 | | p_subpic->i_original_picture_width > 0 ) |
|---|
| | 570 | if( (p_subpic->i_original_picture_height > 0) && |
|---|
| | 571 | (p_subpic->i_original_picture_width > 0) ) |
|---|
| 572 | 572 | { |
|---|
| 573 | 573 | p_spu->p_text->fmt_out.video.i_width = |
|---|
| … | … | |
| 592 | 592 | i_scale_height = i_scale_height_orig; |
|---|
| 593 | 593 | |
|---|
| 594 | | if( p_subpic->i_original_picture_height > 0 && |
|---|
| 595 | | p_subpic->i_original_picture_width > 0 ) |
|---|
| | 594 | if( (p_subpic->i_original_picture_height > 0) && |
|---|
| | 595 | (p_subpic->i_original_picture_width > 0) ) |
|---|
| 596 | 596 | { |
|---|
| 597 | 597 | i_scale_width = i_scale_width * p_fmt->i_width / |
|---|
| … | … | |
| 632 | 632 | |
|---|
| 633 | 633 | /* Load the scaling module */ |
|---|
| 634 | | if( !p_spu->p_scale && (i_scale_width != 1000 || |
|---|
| 635 | | i_scale_height != 1000) ) |
|---|
| | 634 | if( !p_spu->p_scale && |
|---|
| | 635 | ((i_scale_width > 0) || (i_scale_height > 0)) && |
|---|
| | 636 | ((i_scale_width != 1000) || (i_scale_height != 1000)) ) |
|---|
| 636 | 637 | { |
|---|
| 637 | 638 | p_spu->p_scale = vlc_object_create( p_spu, VLC_OBJECT_FILTER ); |
|---|
| … | … | |
| 735 | 736 | } |
|---|
| 736 | 737 | |
|---|
| 737 | | if( (i_scale_width != 1000 || i_scale_height != 1000) && |
|---|
| | 738 | if( ((i_scale_width != 1000) || (i_scale_height != 1000)) && |
|---|
| | 739 | ((i_scale_width > 0) || (i_scale_height > 0)) && |
|---|
| 738 | 740 | p_spu->p_scale && !p_region->p_cache ) |
|---|
| 739 | 741 | { |
|---|
| … | … | |
| 777 | 779 | } |
|---|
| 778 | 780 | } |
|---|
| 779 | | if( (i_scale_width != 1000 || i_scale_height != 1000) && |
|---|
| | 781 | if( ((i_scale_width != 1000) || (i_scale_height != 1000)) && |
|---|
| | 782 | ((i_scale_width > 0) || (i_scale_height > 0)) && |
|---|
| 780 | 783 | p_spu->p_scale && p_region->p_cache ) |
|---|
| 781 | 784 | { |
|---|