Skip to content

Commit

Permalink
Return.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jul 23, 2024
1 parent 9c4cc61 commit 1c6eee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion av/av_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,10 @@ CAMLprim value ocaml_av_set_stream_avg_frame_rate(value _stream,
int index = StreamIndex_val(_stream);
AVStream *st = av->format_context->streams[index];

if (_avg_frame_rate == Val_none)
if (_avg_frame_rate == Val_none) {
st->avg_frame_rate = (AVRational){0, 1};
CAMLreturn(Val_unit);
}

st->avg_frame_rate = rational_of_value(Field(_avg_frame_rate, 0));

Expand Down

0 comments on commit 1c6eee8

Please sign in to comment.