]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8916 #resolve
authorSeven Du <dujinfang@gmail.com>
Wed, 9 Mar 2016 07:26:39 +0000 (15:26 +0800)
committerSeven Du <dujinfang@gmail.com>
Wed, 9 Mar 2016 07:31:40 +0000 (15:31 +0800)
src/mod/applications/mod_av/avcodec.c

index 87deb3d1a9fc229fbe77470d1f78188754314814..cb77875026f3cbef81a0abd46b10e27811f4d05a 100644 (file)
@@ -1144,6 +1144,8 @@ process:
                const uint8_t *p = pkt->data;
                int i = 0;
 
+               *got_output = 0;
+
                if (context->av_codec_id == AV_CODEC_ID_H263) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG5, "Encoded frame %" SWITCH_INT64_T_FMT " (size=%5d) [0x%02x 0x%02x 0x%02x 0x%02x] got_output: %d slices: %d\n", context->pts, pkt->size, *((uint8_t *)pkt->data), *((uint8_t *)(pkt->data + 1)), *((uint8_t *)(pkt->data + 2)), *((uint8_t *)(pkt->data + 3)), *got_output, avctx->slices);