summaryrefslogtreecommitdiff
path: root/src/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/camera.c')
-rw-r--r--src/camera.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/camera.c b/src/camera.c
index 0f60caf..75f5ddd 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -1286,7 +1286,7 @@ static int __camera_update_media_packet_format(camera_cb_info_s *cb_info, MMCamc
media_format_get_video_info(cb_info->pkt_fmt,
&pkt_fmt_mimetype, &pkt_fmt_width, &pkt_fmt_height, NULL, NULL);
- CAM_LOG_INFO("pkt_fmt %dx%d - stream %dx%d",
+ CAM_LOG_DEBUG("pkt_fmt %dx%d - stream %dx%d",
pkt_fmt_width, pkt_fmt_height, stream->width, stream->height);
if (pkt_fmt_mimetype != mimetype ||
@@ -1349,6 +1349,16 @@ static int __camera_create_media_packet(camera_cb_info_s *cb_info, MMCamcorderVi
stream->data.encoded.data, stream->data.encoded.length_data,
(media_packet_dispose_cb)_camera_media_packet_dispose, (void *)cb_info,
&pkt);
+
+ if (pkt) {
+ if (!stream->data.encoded.is_delta_frame)
+ media_packet_set_flags(pkt, MEDIA_PACKET_SYNC_FRAME);
+
+ if (stream->data.encoded.is_header_included) {
+ media_packet_set_flags(pkt, MEDIA_PACKET_CODEC_CONFIG);
+ CAM_LOG_INFO("Codec config in buffer");
+ }
+ }
} else {
tsurf = __camera_get_tbm_surface(stream, mp_data);
if (!tsurf) {