While you're at it, this is also probably wrong in ParseOption(opt, arg, req):

    case 'C':
      parseAMF(&req->extras, optarg, &req->edepth);
      break;

optarg will definitely *not* be populated during a HTTP request!

On Thu, Jul 19, 2012 at 7:44 PM, compn <tempn@twmi.rr.com> wrote:
On Thu, 19 Jul 2012 17:22:03 +0100, Bastien Nocera wrote:
>+    case 'i':
>+      STR2AVAL(req->fullUrl, optarg);
>+      break;
>     case 's':
>       STR2AVAL(req->swfUrl, arg);
>       break;

i know rtmpdump uses optarg. is there any problem mixing optarg and
arg here ?

-compn
_______________________________________________
rtmpdump mailing list
rtmpdump@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump