[FFmpeg-devel] [PATCH 2/3] libavdevice: Update to new iterating API

2020-05-09 Thread Zhao, Gang
Signed-off-by: Zhao, Gang --- libavdevice/avdevice.c | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git libavdevice/avdevice.c libavdevice/avdevice.c index 3d03d89f04..8c1b296d71 100644 --- libavdevice/avdevice.c +++ libavdevice/avdevice.c

[FFmpeg-devel] [PATCH v2 4/4] avcodec/encode: avcodec/frame_thread_encoder: Fixed a compile warning

2020-05-09 Thread Zhao, Gang
Disable deprecation declarations compile warning when we really need to call these deprecated functions. Signed-off-by: Zhao, Gang --- Changes from v1: Removed unnecessary #if check libavcodec/encode.c | 2 ++ libavcodec/frame_thread_encoder.c | 2 ++ 2 files changed, 4

[FFmpeg-devel] [PATCH 1/3] avformat: Correctly check the list before accessing

2020-05-09 Thread Zhao, Gang
Signed-off-by: Zhao, Gang --- libavformat/allformats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git libavformat/allformats.c libavformat/allformats.c index 3919c9e4c1..47cf885699 100644 --- libavformat/allformats.c +++ libavformat/allformats.c @@ -520,7 +520,7 @@ const

[FFmpeg-devel] [PATCH 3/3] avformat/options: Update to new iterating API

2020-05-09 Thread Zhao, Gang
Signed-off-by: Zhao, Gang --- libavformat/options.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git libavformat/options.c libavformat/options.c index e14510504f..cec6ee3621 100644 --- libavformat/options.c +++ libavformat/options.c @@ -55,26 +55,28 @@ static void

[FFmpeg-devel] [PATCH v2] doc/examples/transcoding: update to new encode/decode API

2020-05-02 Thread Zhao, Gang
Signed-off-by: Zhao, Gang --- Changes from v1: Rephrased the commit log to better describe what this patch does. Removed calling of av_log_set_level(AV_LOG_DEBUG) which is used for debugging. This patch doesn't depend on other patches and can be applied separately. Tested that the new

Re: [FFmpeg-devel] [PATCH 1/4] doc/examples/demuxing_decoding: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
On Sat, May 2, 2020 at 9:24 PM James Almer wrote: > On 5/2/2020 7:10 AM, Zhao, Gang wrote: > > Replaced deprecated api avcodec_decode_{audio4,video2}() with > > avcodec_send_packet()/avcodec_receive_frame(). Also made some clean up > > according to this change. > > &g

Re: [FFmpeg-devel] [PATCH 1/4] doc/examples/demuxing_decoding: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
On Sat, May 2, 2020 at 7:20 PM Nicolas George wrote: > Zhao, Gang (12020-05-02): > > Replaced deprecated api avcodec_decode_{audio4,video2}() with > > avcodec_send_packet()/avcodec_receive_frame(). Also made some clean up > > according to this change. > > &g

Re: [FFmpeg-devel] [PATCH 2/4] doc/examples/muxing.c: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
On Sat, May 2, 2020 at 6:13 PM Nicolas George wrote: > Zhao, Gang (12020-05-02): > > Fixed deprecation declarations compile warning by replacing deprecated > > api avcodec_encode_{audio,video}2() with > > avcodec_send_frame()/avcodec_receive_packet(). Also made some clea

[FFmpeg-devel] [PATCH 1/4] doc/examples/demuxing_decoding: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
Replaced deprecated api avcodec_decode_{audio4,video2}() with avcodec_send_packet()/avcodec_receive_frame(). Also made some clean up according to this change. Signed-off-by: Zhao, Gang --- Tested that the new code generated the same files as before by running ./doc/examples/demuxing_decoding_g

[FFmpeg-devel] [PATCH 3/4] doc/examples/transcoding.c: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
. Signed-off-by: Zhao, Gang --- Tested that the new code generated the same file as before by running ./doc/examples/transcoding_g my_samples/transcoding.mp4 my_samples/transcoding.avi doc/examples/transcoding.c | 106 +++-- 1 file changed, 55 insertions(+), 51

[FFmpeg-devel] [PATCH 2/4] doc/examples/muxing.c: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
Fixed deprecation declarations compile warning by replacing deprecated api avcodec_encode_{audio,video}2() with avcodec_send_frame()/avcodec_receive_packet(). Also made some clean up according to this change. Signed-off-by: Zhao, Gang --- Tested that the new code generated the same file as

[FFmpeg-devel] [PATCH 4/4] avcodec/encode: avcodec/frame_thread_encoder: Fixed a compile warning

2020-05-02 Thread Zhao, Gang
Disable deprecation declarations compile warning when we really need to call these deprecated functions. Signed-off-by: Zhao, Gang --- libavcodec/encode.c | 4 libavcodec/frame_thread_encoder.c | 4 2 files changed, 8 insertions(+) diff --git libavcodec/encode.c

[FFmpeg-devel] [PATCH] libavformat/lrcdec: Fix count of timestamp

2020-03-07 Thread Zhao, Gang
trac #7255. Signed-off-by: Zhao, Gang --- libavformat/lrcdec.c | 38 +- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git libavformat/lrcdec.c libavformat/lrcdec.c index a9a117691a..3b206cf079 100644 --- libavformat/lrcdec.c +++ libavformat/lrcdec.c