Advertisement
Guest User

Untitled

a guest
May 7th, 2022
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. index 60aab8cabd..cae174cf1b 100644
  2. --- a/libavformat/dhav.c
  3. +++ b/libavformat/dhav.c
  4. @@ -78,7 +78,8 @@ static const uint32_t sample_rates[] = {
  5.  static int parse_ext(AVFormatContext *s, int length)
  6.  {
  7.      DHAVContext *dhav = s->priv_data;
  8. -    int index, ret = 0;
  9. +    int64_t ret = 0;
  10. +    int index = 0;
  11.  
  12.      while (length > 0) {
  13.          int type = avio_r8(s->pb);
  14. @@ -168,8 +169,7 @@ static int read_chunk(AVFormatContext *s)
  15.  {
  16.      DHAVContext *dhav = s->priv_data;
  17.      int frame_length, ext_length;
  18. -    int64_t start, end;
  19. -    int ret;
  20. +    int64_t start, end, ret;
  21.  
  22.      if (avio_feof(s->pb))
  23.          return AVERROR_EOF;
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement