From ab5956a3961746b19a2baedcf5cbcca0666cd765 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 22 May 2003 12:17:07 +0000 Subject: [PATCH] more range fixes Original commit message from CVS: more range fixes --- gst/mpegstream/gstrfc2250enc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gst/mpegstream/gstrfc2250enc.c b/gst/mpegstream/gstrfc2250enc.c index 25f24de..9390b27 100644 --- a/gst/mpegstream/gstrfc2250enc.c +++ b/gst/mpegstream/gstrfc2250enc.c @@ -237,17 +237,18 @@ gst_rfc2250_enc_loop (GstElement *element) enc->flags |= ENC_HAVE_PIC; break; case EXT_START_CODE: - break; - case SLICE_MIN_START_CODE ... SLICE_MAX_START_CODE: - enc->flags |= ENC_HAVE_DATA; - gst_rfc2250_enc_add_slice (enc, buffer); - buffer = NULL; - break; case USER_START_CODE: case SEQUENCE_ERROR_START_CODE: case SEQUENCE_END_START_CODE: break; default: + /* do this here because of the long range */ + if (id >= SLICE_MIN_START_CODE && id <= SLICE_MAX_START_CODE) { + enc->flags |= ENC_HAVE_DATA; + gst_rfc2250_enc_add_slice (enc, buffer); + buffer = NULL; + break; + } break; } -- 2.7.4