胡斌

if script name is amf3 encoded,save it as amf0 string

... ... @@ -280,6 +280,11 @@ int SrsFlvSegment::write_data(SrsSharedPtrMessage* shared_data)
char* payload = data->payload;
int size = data->size;
int64_t timestamp = plan->filter_timestamp(data->timestamp);
if( size && payload && (*payload) ==0)
{//convert amf3 string to amf0
size --;
payload ++;
}
if ((ret = enc->write_metadata( timestamp , payload, size)) != ERROR_SUCCESS) {
return ret;
}
... ...