mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 04:15:05 +00:00
reenable test, data is available in this case
Originally committed as revision 13412 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
87b6ea8458
commit
ba26712b5c
@ -296,11 +296,8 @@ static int ffm_is_avail_data(AVFormatContext *s, int size)
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
len = ffm->packet_end - ffm->packet_ptr;
|
len = ffm->packet_end - ffm->packet_ptr;
|
||||||
if (!ffm_nopts) {
|
if (size <= len)
|
||||||
/* XXX: I don't understand this test, so I disabled it for testing */
|
return 1;
|
||||||
if (size <= len)
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
pos = url_ftell(s->pb);
|
pos = url_ftell(s->pb);
|
||||||
if (pos == ffm->write_index) {
|
if (pos == ffm->write_index) {
|
||||||
/* exactly at the end of stream */
|
/* exactly at the end of stream */
|
||||||
|
Loading…
Reference in New Issue
Block a user