]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10246: [build] fix code can not be reached build error
authorMike Jerris <mike@jerris.com>
Thu, 20 Apr 2017 20:49:30 +0000 (15:49 -0500)
committerMike Jerris <mike@jerris.com>
Tue, 30 May 2017 20:47:00 +0000 (16:47 -0400)
src/switch_vpx.c

index 6c7760ea53b99d63a4949af2176017019cbab551..1b7414a7299a6a4e363e7e56238c5ea5a9317c79 100644 (file)
@@ -636,6 +636,7 @@ static switch_status_t consume_partition(vpx_context_t *context, switch_frame_t
        uint8_t *body;
        uint32_t hdrlen = 0, payload_size = 0, packet_size = 0, start = 0, key = 0;
        switch_size_t remaining_bytes = 0;
+       switch_status_t status;
 
        if (!context->pkt) {
                if ((context->pkt = vpx_codec_get_cx_data(&context->encoder, &context->enc_iter))) {
@@ -756,17 +757,19 @@ static switch_status_t consume_partition(vpx_context_t *context, switch_frame_t
                context->pkt = NULL;
                frame->datalen += remaining_bytes;
                frame->m = 1;
-               return SWITCH_STATUS_SUCCESS;
+               status = SWITCH_STATUS_SUCCESS;
        } else {
                switch_buffer_read(context->pbuffer, body, payload_size);
                frame->datalen += payload_size;
                frame->m = 0;
-               return SWITCH_STATUS_MORE_DATA;
+               status = SWITCH_STATUS_MORE_DATA;
        }
 
        if (frame->m && context->is_vp9) {
                payload_descriptor->vp9.end = 1;
        }
+
+       return status;
 }
 
 static switch_status_t reset_codec_encoder(switch_codec_t *codec)