[FFmpeg-devel] [PATCH] crash fixed: live stream.
Andriy Gelman
andriy.gelman at gmail.com
Tue Feb 18 23:03:24 EET 2020
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, &pls->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
More information about the ffmpeg-devel
mailing list