diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-04-29 23:31:59 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-04-29 23:31:59 +0000 |
commit | 0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d (patch) | |
tree | f421f82664a92fb2568fdbd76c13a31d4db6f5b7 /src/libmpeg2/decode.c | |
parent | 7bfed2df7a422912d295348e100c73e8ee388216 (diff) | |
download | xine-lib-0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d.tar.gz xine-lib-0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d.tar.bz2 |
Replace all exit(1) with abort().
xine-lib should really never do an exit or abort, but instead pass back nice error values to the calling application, but until that happens, use abort() as that is tracable with gdb, whereas exit(1) is not backtraceable.
CVS patchset: 1811
CVS date: 2002/04/29 23:31:59
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r-- | src/libmpeg2/decode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index f5bff3815..6186c7c5b 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -207,7 +207,7 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, case 0x00: /* picture_start_code */ if (mpeg2_header_picture (picture, buffer)) { fprintf (stderr, "bad picture header\n"); - exit (1); + abort(); } mpeg2dec->is_frame_needed=0; @@ -287,7 +287,7 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, case 0xb3: /* sequence_header_code */ if (mpeg2_header_sequence (picture, buffer)) { fprintf (stderr, "bad sequence header\n"); - /* exit (1); */ + /* abort(); */ } else if (mpeg2dec->is_sequence_needed || (picture->frame_width != picture->coded_picture_width) || (picture->frame_height != picture->coded_picture_height)) { @@ -327,7 +327,7 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, case 0xb5: /* extension_start_code */ if (mpeg2_header_extension (picture, buffer)) { fprintf (stderr, "bad extension\n"); - exit (1); + abort(); } break; @@ -338,7 +338,7 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, case 0xb8: /* group of pictures start code */ if (mpeg2_header_group_of_pictures (picture, buffer)) { printf ("libmpeg2: bad group of pictures\n"); - exit (1); + abort(); } default: if (code >= 0xb9) |