From 0ec1fddf7f2eaf8eb29123d79e3462e723a37c1d Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Mon, 29 Apr 2002 23:31:59 +0000 Subject: 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 --- src/libmpeg2/decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libmpeg2') 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) -- cgit v1.2.3