Skip to content

Commit

Permalink
Fix h265_parser build
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish authored Oct 28, 2022
1 parent 346fb8d commit 86b8397
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packager/media/codecs/h265_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@

#define READ_BITS_OR_RETURN(num_bits, out) \
do { \
if (!br->ReadBits(num_bits, (out))) { \
int _tmp_out; \
if (!br->ReadBits(num_bits, &_tmp_out)) { \
DVLOG(1) \
<< "Error in stream: unexpected EOS while trying to read " #out; \
return kInvalidStream; \
} \
} while (0)
*(out) = _tmp_out; \
} while(0) \

#define READ_LONG_OR_RETURN(out) READ_BITS_OR_RETURN(32, out)

Expand Down

0 comments on commit 86b8397

Please sign in to comment.