FS-7500: clean up logic of encoder flow and set rules on return values and tweak some codec settings on vp8

This commit is contained in:
Anthony Minessale authored and Michael Jerris committed 2015-05-28 12:46:45 -05:00
1 parent ec9b7c0499
commit d7af2b128c
3 files changed
+42 -30

No files matched your search

+3 -2
View File
@@ -809,12 +809,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_encode_video(switch_codec_t *c
if (codec->implementation->encode_video) {
status = codec->implementation->encode_video(codec, frame);
if (frame->datalen) {
frame->packetlen = frame->datalen + 12;
if (status == SWITCH_STATUS_MORE_DATA) {
frame->flags |= SFF_SAME_IMAGE;
} else {
frame->flags &= ~SFF_SAME_IMAGE;
}
frame->packetlen = frame->datalen + 12;
}
if (codec->mutex) switch_mutex_unlock(codec->mutex);