Skip to content

Commit e06933f

Browse files
remove deprecated function call fixes #29
1 parent 2f663d7 commit e06933f

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

0_hello_world.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ int main(int argc, const char *argv[])
3030
{
3131
logging("initializing all the containers, codecs and protocols.");
3232

33-
// Initialize the lavf/lavc library and register all the formats, codecs and protocols.
34-
// http://ffmpeg.org/doxygen/trunk/group__lavf__core.html#ga917265caec45ef5a0646356ed1a507e3
35-
av_register_all();
36-
3733
// AVFormatContext holds the header information from the format (Container)
3834
// Allocating memory for this component
3935
// http://ffmpeg.org/doxygen/trunk/structAVFormatContext.html

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,7 @@ Since some people were [facing issues while compiling or running the examples](h
299299
300300
We'll skip some details, but don't worry: the [source code is available at github](/0_hello_world.c).
301301
302-
The first thing we need to do is to register all the codecs, formats and protocols.
303-
To do it, we just need to call the function [`av_register_all`](http://ffmpeg.org/doxygen/trunk/group__lavf__core.html#ga917265caec45ef5a0646356ed1a507e3):
304-
305-
```c
306-
av_register_all();
307-
```
308-
309-
Now we're going to allocate memory to the component [`AVFormatContext`](http://ffmpeg.org/doxygen/trunk/structAVFormatContext.html) that will hold information about the format (container).
302+
We're going to allocate memory to the component [`AVFormatContext`](http://ffmpeg.org/doxygen/trunk/structAVFormatContext.html) that will hold information about the format (container).
310303
311304
```c
312305
AVFormatContext *pFormatContext = avformat_alloc_context();

0 commit comments

Comments
 (0)