mpenkov / ffmpeg-tutorial

A set of tutorials that demonstrates how to write a video player based on FFmpeg
http://www.ffmpeg.org/documentation.html
1.23k stars 396 forks source link

update deprecated function ( avcodec_alloc_frame, get_buffer, avcodec_default_get_buffer ) #19

Closed Schebb closed 10 years ago

Schebb commented 10 years ago

avcodec_alloc_frame -> av_frame_alloc avcodec_default_get_buffer -> avcodec_default_get_buffer2 get_buffer -> get_buffer2

... and clean space at end of line.

need also to update:

mpenkov commented 10 years ago

Hey, thanks for doing the update. I notice there's a lot of unnecessary white space changes mixed in the same commit with good changes; can you please modify the commit to remove them? I don't mind you changing the whitespace, I just think they belong in a separate commit, to keep things easy to understand.

Schebb commented 10 years ago

Done.

Actually, I noticed the whitespace changes after the commit (wrong emacs config :-/). I only changed the functions on this commit.

ghost commented 10 years ago

Actually, it's probably better not to change any whitespace at all. That way, people can diff the most recent version of the source with the old Dranger tutorials and still get a meaningful result.