Loading
StagefrightRecoder: Use flag to enable or disable b-frame
Use flag to enable or disable b-frame support in screen recorder. Also fix mediaTimeTicks calculation in mpeg4writer. If video track starting at 0 then video's timescale (i.e. mTimeScale) is used to calculate mediaTime (i.e. mediaTimeTicks) but in case of video start with positive start offset then mpeg4 writer's timescale (i.e. mvhdTimeScale) is used to calculate mediatime (i.e. editDurationTicks). Modified mediaTimeTicks calculation to use mTimeScale even in case of video start with positive start offset. Bug: 288549440 Bug: 341121900 Test: muxer poc in bug Test: manual Test: adb shell setprop persist.device_config.aconfig_flags. \ media_solutions.com.android.media.editing.flags. \ stagefrightrecorder_enable_b_frames true Test: adb shell device_config put media_solutions \ com.android.media.editing.flags. \ stagefrightrecorder_enable_b_frames true Change-Id: I84585fb233ed914ba2c1d8d95f0071071318c5bf