Re: [FFmpeg-devel] new patch
let me now any progress? On Tuesday, February 18, 2020, 6:41:08 PM GMT+3:30, Mostafa Namazi fard wrote: I found this patch useful for prevent crash in http live stream.I'm using ffmpeg in my application for show http live when remote address send invalid data ffmpeg crash in this part and after my change it was fixed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-devel] [PATCH] crash fixed: live stream.
Hello Andriyyou can see my patch in below link. please review that. thanks. [FFmpeg-devel] new patch - Patchwork | | | | [FFmpeg-devel] new patch - Patchwork | | | On Wednesday, February 19, 2020, 1:01:21 AM GMT+3:30, Andriy Gelman wrote: On Tue, 18. Feb 18:52, Mostafa Namazi fard wrote: > --- > libavformat/hls.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/hls.c b/libavformat/hls.c > index 1f58e745a7..97b1a1db52 100644 > --- a/libavformat/hls.c > +++ b/libavformat/hls.c > @@ -2110,7 +2110,7 @@ static int hls_read_packet(AVFormatContext *s, > AVPacket *pkt) > /* Make sure we've got one buffered packet from each open playlist > * stream */ > if (pls->needed && !pls->pkt.data) { > - while (1) { > + while (pls->ctx) { > int64_t ts_diff; > AVRational tb; > ret = av_read_frame(pls->ctx, >pkt); Hello Mostafa, It looks that your inlined version doesn't apply with git am. If you simply paste in the patch, your email client may corrupt it. I recommend to use git send-email which handles the formatting. If you have a gmail account and want to use it with git send-email, then follow the steps at the end of this page (in the examples section) http://web.mit.edu/git/www/git-send-email.html Thanks, -- Andriy ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-devel] new patch
I found this patch useful for prevent crash in http live stream. I'm using ffmpeg in my application for show http live when remote address send invalid data ffmpeg crash in this part and after my change it was fixed. From 73c61670d6e65ad9f7a354a785f73ff9ad5ffc12 Mon Sep 17 00:00:00 2001 From: Mostafa Namazi Date: Tue, 18 Feb 2020 16:14:16 +0330 Subject: [PATCH] crash fixed: live stream. --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 1f58e745a7..97b1a1db52 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2110,7 +2110,7 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt) /* Make sure we've got one buffered packet from each open playlist * stream */ if (pls->needed && !pls->pkt.data) { -while (1) { +while (pls->ctx) { int64_t ts_diff; AVRational tb; ret = av_read_frame(pls->ctx, >pkt); -- 2.17.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-devel] [PATCH] crash fixed: live stream.
--- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 1f58e745a7..97b1a1db52 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2110,7 +2110,7 @@ static int hls_read_packet(AVFormatContext *s, AVPacket *pkt) /* Make sure we've got one buffered packet from each open playlist * stream */ if (pls->needed && !pls->pkt.data) { -while (1) { +while (pls->ctx) { int64_t ts_diff; AVRational tb; ret = av_read_frame(pls->ctx, >pkt); -- 2.17.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".