proto: Use .priv_data_size to allocate the private context
authorMartin Storsjö <martin@martin.st>
Thu, 1 Dec 2011 09:44:21 +0000 (11:44 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 1 Dec 2011 11:47:26 +0000 (13:47 +0200)
commit7e58050590c556643869a1cc57215026ff88b0db
tree13d62d154bc9e260991985dbb94b3ae04e034ea9
parent9c6777bd9367e8680bb7ada9852f5760dc8a8594
proto: Use .priv_data_size to allocate the private context

This simplifies the open functions by avoiding one function
call that needs error checking, reducing the amount of
extra bulk code.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/applehttpproto.c
libavformat/concat.c
libavformat/gopher.c
libavformat/librtmp.c
libavformat/mmsh.c
libavformat/mmst.c
libavformat/rtmpproto.c
libavformat/rtpproto.c
libavformat/tcp.c
libavformat/udp.c