Skip to content

Commit

Permalink
Drop the request for an IDR frame if no video encoder is active
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Jul 30, 2024
1 parent 72a2654 commit 2affde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void request_idr(void) {
index = i;
break;
}
if (index != 1) switch (plat) {
if (index != -1) switch (plat) {
#if defined(__arm__)
case HAL_PLATFORM_GM: gm_video_request_idr(index); break;
case HAL_PLATFORM_I6: i6_video_request_idr(index); break;
Expand Down

0 comments on commit 2affde1

Please sign in to comment.