From: Seven Du Date: Wed, 9 Mar 2016 12:36:55 +0000 (+0800) Subject: FS-8916 comment out dead code from the last bug fix, add to TODO X-Git-Tag: v1.6.7~2^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e07c472ff9d81630dc1cb4cd92ba90d72fdd1193;p=thirdparty%2Ffreeswitch.git FS-8916 comment out dead code from the last bug fix, add to TODO --- diff --git a/src/mod/applications/mod_av/avcodec.c b/src/mod/applications/mod_av/avcodec.c index cb77875026..1f02c8cb8d 100644 --- a/src/mod/applications/mod_av/avcodec.c +++ b/src/mod/applications/mod_av/avcodec.c @@ -1100,7 +1100,8 @@ static switch_status_t switch_h264_encode(switch_codec_t *codec, switch_frame_t } } - if (*got_output) { // Could be more delayed frames +#if 0 + if (*got_output) { // TODO: Could be more delayed frames, flush when frame == NULL ret = avcodec_encode_video2(avctx, pkt, NULL, got_output); if (ret < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Encoding Error %d\n", ret); @@ -1112,6 +1113,7 @@ static switch_status_t switch_h264_encode(switch_codec_t *codec, switch_frame_t goto process; } } +#endif fill_avframe(avframe, img); @@ -1138,7 +1140,7 @@ static switch_status_t switch_h264_encode(switch_codec_t *codec, switch_frame_t context->need_key_frame = 0; } -process: +// process: if (*got_output) { const uint8_t *p = pkt->data;