Guest User

Untitled

a guest
Aug 29th, 2017
12
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/libavformat/utils.c b/libavformat/utils.c
  2. index 23865c88c4..f9d1f1be45 100644
  3. --- a/libavformat/utils.c
  4. +++ b/libavformat/utils.c
  5. @@ -3808,6 +3808,15 @@ FF_ENABLE_DEPRECATION_WARNINGS
  6.              ret = extract_extradata(st, pkt);
  7.              if (ret < 0)
  8.                  goto find_stream_info_err;
  9. +
  10. +            if (!st->internal->avctx->extradata && st->codecpar->extradata) {
  11. +                av_freep(&avctx->extradata);
  12. +                avctx->extradata = av_mallocz(st->codecpar->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
  13. +                if (!avctx->extradata)
  14. +                    goto find_stream_info_err;
  15. +                memcpy(avctx->extradata, st->codecpar->extradata, st->codecpar->extradata_size);
  16. +                avctx->extradata_size = st->codecpar->extradata_size;
  17. +            }
  18.          }
  19.  
  20.          /* If still no information, we try to open the codec and to
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.

×