mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	segment: Check av_get_frame_filename() return value
CC: libav-stable@libav.org Bug-Id: CID 1265713
This commit is contained in:
		| @@ -105,7 +105,11 @@ static int segment_hls_window(AVFormatContext *s, int last) | |||||||
|         if (seg->entry_prefix) { |         if (seg->entry_prefix) { | ||||||
|             avio_printf(seg->pb, "%s", seg->entry_prefix); |             avio_printf(seg->pb, "%s", seg->entry_prefix); | ||||||
|         } |         } | ||||||
|         av_get_frame_filename(buf, sizeof(buf), s->filename, i); |         ret = av_get_frame_filename(buf, sizeof(buf), s->filename, i); | ||||||
|  |         if (ret < 0) { | ||||||
|  |             ret = AVERROR(EINVAL); | ||||||
|  |             goto fail; | ||||||
|  |         } | ||||||
|         avio_printf(seg->pb, "%s\n", buf); |         avio_printf(seg->pb, "%s\n", buf); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Vittorio Giovara
					Vittorio Giovara