Skip to content

Commit

Permalink
Don't leak massive amounts of memory in AV1 decoder
Browse files Browse the repository at this point in the history
Forgot to unref the picture after use.

Fixes #507
  • Loading branch information
bvibber committed Oct 20, 2018
1 parent eef47bf commit ce35b55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/c/ogv-decoder-video-av1.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ int ogv_video_decoder_process_frame(const char *buf, size_t buf_len)
picture.p.w, picture.p.h,
0, 0,
picture.p.w, picture.p.h);
dav1d_picture_unref(&picture);

return 1;
}

Expand Down

0 comments on commit ce35b55

Please sign in to comment.