Changeset 6e08e54f8cdabaeab81846b3679d053669088867
- Timestamp:
- 05/12/03 15:58:03
(5 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1070636283 +0000
- git-parent:
[222d4881482eba8445e38bbfb9a702ef1044409d]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1070636283 +0000
- Message:
* modules/codec/libmpeg2.c: fixed a couple of crashes on bad files.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r89fd537 |
r6e08e54 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999-2001 VideoLAN |
|---|
| 5 | | * $Id: libmpeg2.c,v 1.35 2003/11/24 23:22:01 gbazin Exp $ |
|---|
| | 5 | * $Id: libmpeg2.c,v 1.36 2003/12/05 14:58:03 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 179 | 179 | } |
|---|
| 180 | 180 | |
|---|
| 181 | | if( p_block->b_discontinuity && p_sys->p_synchro |
|---|
| 182 | | && p_sys->p_info->sequence->width != (unsigned)-1 ) |
|---|
| | 181 | if( p_block->b_discontinuity && p_sys->p_synchro && |
|---|
| | 182 | p_sys->p_info->sequence && |
|---|
| | 183 | p_sys->p_info->sequence->width != (unsigned)-1 ) |
|---|
| 183 | 184 | { |
|---|
| 184 | 185 | vout_SynchroReset( p_sys->p_synchro ); |
|---|
| … | … | |
| 421 | 422 | PIC_MASK_CODING_TYPE) != B_CODING_TYPE ) ) |
|---|
| 422 | 423 | { |
|---|
| 423 | | vout_SynchroReset( p_sys->p_synchro ); |
|---|
| | 424 | if( p_sys->p_synchro ) vout_SynchroReset( p_sys->p_synchro ); |
|---|
| 424 | 425 | } |
|---|
| 425 | 426 | mpeg2_skip( p_sys->p_mpeg2dec, 1 ); |
|---|
| … | … | |
| 431 | 432 | p_sys->b_garbage_pic = 1; |
|---|
| 432 | 433 | p_pic = p_sys->p_info->current_fbuf->id; |
|---|
| | 434 | } |
|---|
| | 435 | else if( !p_sys->p_info->sequence ) |
|---|
| | 436 | { |
|---|
| | 437 | break; |
|---|
| 433 | 438 | } |
|---|
| 434 | 439 | else |
|---|