1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

donot mix the read and write for librtmp

This commit is contained in:
winlin 2014-06-29 17:17:50 +08:00
parent 1eee4d25cf
commit a888e52df1
8 changed files with 58 additions and 16 deletions

View file

@ -93,7 +93,7 @@ int main(int argc, char** argv)
trace("input: %s", in_flv_file);
trace("output: %s", out_rtmp_url);
if ((flv = srs_flv_open(in_flv_file)) == NULL) {
if ((flv = srs_flv_open_read(in_flv_file)) == NULL) {
ret = 2;
trace("open flv file failed. ret=%d", ret);
return ret;