diff --git a/README-cn.md b/README-cn.md index 40fa061..58f6f6e 100644 --- a/README-cn.md +++ b/README-cn.md @@ -739,9 +739,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ``` diff --git a/README-es.md b/README-es.md index ab63aef..642b3b2 100644 --- a/README-es.md +++ b/README-es.md @@ -750,9 +750,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ``` @@ -961,4 +961,4 @@ Vamos a convertir el stream desde `h264` a `h265`, como se espera de la versión ``` -> Ahora, para ser honesto, esto fue [más difícil de lo que pensé](https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54), voy a tener que y ya me he metido dentro de [el código fuente de la linea de comandos FFmpeg](https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54#issuecomment-570746749) y probarlo bastante, y también pienso que estoy olvidando algo, ya que cuando tengo que forzar `force-cfr` para que el `h264` funcione, me sigue arrojando algunos mensajes como `warning messages (forced frame type (5) at 80 was changed to frame type (3))`. \ No newline at end of file +> Ahora, para ser honesto, esto fue [más difícil de lo que pensé](https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54), voy a tener que y ya me he metido dentro de [el código fuente de la linea de comandos FFmpeg](https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54#issuecomment-570746749) y probarlo bastante, y también pienso que estoy olvidando algo, ya que cuando tengo que forzar `force-cfr` para que el `h264` funcione, me sigue arrojando algunos mensajes como `warning messages (forced frame type (5) at 80 was changed to frame type (3))`. diff --git a/README-ko.md b/README-ko.md index 9ad1356..70f66e3 100644 --- a/README-ko.md +++ b/README-ko.md @@ -736,9 +736,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ``` diff --git a/README-pt.md b/README-pt.md index 9dd1646..fd8c24e 100644 --- a/README-pt.md +++ b/README-pt.md @@ -743,9 +743,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ``` @@ -954,4 +954,4 @@ Nós convertemos o fluxo de mídia de `h264` para `h265`, como esperado a versã ``` -> Para ser honesto, isso foi mais difícil do que eu pensava que seria (https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54) e tive que mergulhar no código-fonte da linha de comando do FFmpeg (https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54#issuecomment-570746749) e testar muito, e acho que ainda estou perdendo alguma coisa, pois tive que forçar `force-cfr` para o `h264` funcionar e ainda estou vendo algumas mensagens de aviso, como `warning messages (forced frame type (5) at 80 was changed to frame type (3))`. \ No newline at end of file +> Para ser honesto, isso foi mais difícil do que eu pensava que seria (https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54) e tive que mergulhar no código-fonte da linha de comando do FFmpeg (https://github.com/leandromoreira/ffmpeg-libav-tutorial/pull/54#issuecomment-570746749) e testar muito, e acho que ainda estou perdendo alguma coisa, pois tive que forçar `force-cfr` para o `h264` funcionar e ainda estou vendo algumas mensagens de aviso, como `warning messages (forced frame type (5) at 80 was changed to frame type (3))`. diff --git a/README-vn.md b/README-vn.md index 5bdab06..e2917f8 100644 --- a/README-vn.md +++ b/README-vn.md @@ -741,9 +741,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ``` diff --git a/README.md b/README.md index d67f1c0..51c2036 100644 --- a/README.md +++ b/README.md @@ -750,9 +750,9 @@ for (int i = 0; i < avfc->nb_streams; i++) { AVStream *avs = avfc->streams[i]; AVCodec *avc = avcodec_find_decoder(avs->codecpar->codec_id); - AVCodecContext *avcc = avcodec_alloc_context3(*avc); - avcodec_parameters_to_context(*avcc, avs->codecpar); - avcodec_open2(*avcc, *avc, NULL); + AVCodecContext *avcc = avcodec_alloc_context3(avc); + avcodec_parameters_to_context(avcc, avs->codecpar); + avcodec_open2(avcc, avc, NULL); } ```