New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: av_free_packet deprecated #54

Open
sibbl opened this Issue Jan 17, 2016 · 6 comments

Comments

Projects
None yet
7 participants
@sibbl
Copy link

sibbl commented Jan 17, 2016

I just pulled the current code of both this project and ffmpeg, finished building ffmpeg but now get the following error when trying to build FFmpegInterop:

C4996: "av_free_packet": was declared as deprecated

I could fix it by adding 4996 to Properties > Configuration Properties > C/C++ > Advanced > Disable Specific Warnings, but this shouldn't be the way to go, right?

@krishnan-unni

This comment has been minimized.

Copy link

krishnan-unni commented Jan 18, 2016

Use av_packet_unref rather than suppressing the warning

@qin-nz

This comment has been minimized.

Copy link

qin-nz commented Mar 4, 2016

I have building project on two of my PC.
This issues only accord on one of them.

@kakone

This comment has been minimized.

Copy link

kakone commented Apr 29, 2016

Same error here but I have also :
C4996: 'AVStream::codec': was declared deprecated
C4996: 'avcodec_decode_video2': was declared deprecated
C4996: 'avcodec_decode_audio4': was declared deprecated

@dingpong

This comment has been minimized.

Copy link

dingpong commented Apr 29, 2016

@kakone
Use the tag n3.0.2 version.
https://github.com/FFmpeg/FFmpeg/tree/n3.0.2

@khouzam

This comment has been minimized.

Copy link
Member

khouzam commented Apr 29, 2016

I've updated the FFmpegInterop projects for 3.0.1 in this branch
https://github.com/Microsoft/FFmpegInterop/tree/ffmpeg3.0.1

It should fix the av_free_packet issue. I haven't looked at the 3.0.2 release yet as it just came out.

@13025309325

This comment has been minimized.

Copy link

13025309325 commented Oct 26, 2017

@krishnan-unni Thank you very mush

lemourin pushed a commit to lemourin/FFmpegInterop that referenced this issue Sep 15, 2018

Merge pull request Microsoft#54 from lukasf/fix-passthrough-leak
Fix memory leak when using passthrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment