|
@@ -218,11 +218,8 @@ static void end_ebml_master(ByteIOContext *pb, ebml_master master) |
|
|
{ |
|
|
{ |
|
|
int64_t pos = url_ftell(pb); |
|
|
int64_t pos = url_ftell(pb); |
|
|
|
|
|
|
|
|
// leave the unknown size for masters when streaming |
|
|
|
|
|
if (url_is_streamed(pb)) |
|
|
|
|
|
|
|
|
if (url_fseek(pb, master.pos - master.sizebytes, SEEK_SET) < 0) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
url_fseek(pb, master.pos - master.sizebytes, SEEK_SET); |
|
|
|
|
|
put_ebml_num(pb, pos - master.pos, master.sizebytes); |
|
|
put_ebml_num(pb, pos - master.pos, master.sizebytes); |
|
|
url_fseek(pb, pos, SEEK_SET); |
|
|
url_fseek(pb, pos, SEEK_SET); |
|
|
} |
|
|
} |
|
|