Guest User

Untitled

a guest
Nov 2nd, 2017
380
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From a0bed049f0fa46d203c77dcf822b48e41beec523 Mon Sep 17 00:00:00 2001
  2. From: Hendrik Leppkes <h.leppkes@gmail.com>
  3. Date: Thu, 2 Nov 2017 18:02:18 +0100
  4. Subject: [PATCH] h2645_parse: deallocate nals before splitting
  5.  
  6. ---
  7. libavcodec/h2645_parse.c | 1 +
  8.  1 file changed, 1 insertion(+)
  9.  
  10. diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
  11. index b0d9ff66f0..72ef46f798 100644
  12. --- a/libavcodec/h2645_parse.c
  13. +++ b/libavcodec/h2645_parse.c
  14. @@ -255,6 +255,7 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
  15.      const uint8_t *next_avc = is_nalff ? buf : buf + length;
  16.  
  17.      pkt->nb_nals = 0;
  18. +    ff_h2645_packet_uninit(pkt);
  19.      while (length >= 4) {
  20.          H2645NAL *nal;
  21.          int extract_length = 0;
  22. --
  23. 2.13.2.windows.1
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×