Mercurial > libavformat.hg
comparison audio.c @ 481:f1430abbbd8b libavformat
A/V Synch in ffmpeg patch by (Luca Abeni <lucabe72 at email dot it>)
author | michael |
---|---|
date | Fri, 18 Jun 2004 03:03:32 +0000 |
parents | 60f897e8dd2d |
children | 0fdc96c2f2fe |
comparison
equal
deleted
inserted
replaced
480:cfcca046161a | 481:f1430abbbd8b |
---|---|
261 if (ret > 0) | 261 if (ret > 0) |
262 break; | 262 break; |
263 if (ret == -1 && (errno == EAGAIN || errno == EINTR)) { | 263 if (ret == -1 && (errno == EAGAIN || errno == EINTR)) { |
264 av_free_packet(pkt); | 264 av_free_packet(pkt); |
265 pkt->size = 0; | 265 pkt->size = 0; |
266 pkt->pts = av_gettime() & ((1LL << 48) - 1); | |
266 return 0; | 267 return 0; |
267 } | 268 } |
268 if (!(ret == 0 || (ret == -1 && (errno == EAGAIN || errno == EINTR)))) { | 269 if (!(ret == 0 || (ret == -1 && (errno == EAGAIN || errno == EINTR)))) { |
269 av_free_packet(pkt); | 270 av_free_packet(pkt); |
270 return -EIO; | 271 return -EIO; |