History

hlsenc: check append_entry return value

Luca Barbato committed 13 years ago

Commit 6dd93ee1 parent 66f7b481 file · +6 −3Browse files

Unified · Split

libavformat/hlsenc.c+6−3
@@ -259,9 +259,12 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) · 258 unmodified lines
259 av_compare_ts(pkt->pts, st->time_base, end_pts, AV_TIME_BASE_Q) >= 0 &&259 av_compare_ts(pkt->pts, st->time_base, end_pts, AV_TIME_BASE_Q) >= 0 &&
260 pkt->flags & AV_PKT_FLAG_KEY) {260 pkt->flags & AV_PKT_FLAG_KEY) {
261 261
262 append_entry(hls, av_rescale(pkt->pts - hls->end_pts,262 ret = append_entry(hls, av_rescale(pkt->pts - hls->end_pts,
263 st->time_base.num,263 st->time_base.num,
264 st->time_base.den));264 st->time_base.den));
265 if (ret)
266 return ret;
267
265 hls->end_pts = pkt->pts;268 hls->end_pts = pkt->pts;
266 269
267 av_write_frame(oc, NULL); /* Flush any buffered data */270 av_write_frame(oc, NULL); /* Flush any buffered data */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t