1 /* { dg-do compile } */
2 /* { dg-options "-funswitch-loops -ftree-loop-distribution" } */
4 typedef struct AVProgram
{
6 unsigned int nb_streams
;
10 unsigned char stream_id
;
13 FrameCode frame_code
[256];
15 void build_frame_code(AVFormatContext
*s
, int stream_id
,
16 int is_audio
, int pred_count
)
18 NUTContext
*nut
= s
->priv_data
;
19 int keyframe_0_esc
= s
->nb_streams
> 2;
20 int start2
= 1 + 253*stream_id
/ s
->nb_streams
;
22 for(key_frame
=0; key_frame
<2; key_frame
++)
25 if (is_audio
&& keyframe_0_esc
&& key_frame
==0)
27 ft
= &nut
->frame_code
[start2
];
29 ft
->stream_id
= stream_id
;