Skip to content

Commit

Permalink
aubuf: set sample format when frame is read
Browse files Browse the repository at this point in the history
It is possible that the reader expects a different sample format then stored
in the audio buffer.
  • Loading branch information
cspiel1 authored and sreimers committed Mar 15, 2023
1 parent e6bd939 commit 7afdc9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rem/aubuf/aubuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ static void read_auframe(struct aubuf *ab, struct auframe *af)
af->srate = f->af.srate;
af->ch = f->af.ch;
af->timestamp = f->af.timestamp;
af->fmt = f->af.fmt;

if (!mbuf_get_left(f->mb)) {
mem_deref(f);
Expand Down

0 comments on commit 7afdc9c

Please sign in to comment.