h264: return meaningful values

Signed-off-by: Anton Khirnov <anton@khirnov.net>
h264: use explicit variable names for *_field_flag

Signed-off-by: Anton Khirnov <anton@khirnov.net>
h264: check one context_init() allocation

Signed-off-by: Anton Khirnov <anton@khirnov.net>
lavc: Add refcounted api to AVPacket

Provide a clean way to manipulate packets.
rtmp: Use PRId64 when needed.
rtmp: rename data_size to size
rtmp: Detect and warn if the user tries to pass librtmp style parameters

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: Add librtmp to the section header for the librtmp specific details

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: Extend the rtmp example to include how to pass username/password

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: Explain that the default RTMP user agent is different when publishing

The fact that a different user agent is used is cruicial for getting
publishing authentication working. (When using librtmp, this other
user agent has to be specified manually, but that's not needed
with the libavformat internal RTMP support.)

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: Add an example on publishing over RTMP

Signed-off-by: Martin Storsjö <martin@martin.st>
doc: Clarify the avconv section about -re

Signed-off-by: Martin Storsjö <martin@martin.st>
rtmp: Do not misuse memcmp

CC: libav-stable@libav.org
Merge commit 'b3dc260e7fa6f3f852dd5cb7d86763c4b5736714'

* commit 'b3dc260e7fa6f3f852dd5cb7d86763c4b5736714':
  h264: return meaningful values

Conflicts:
	libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
svq3: Fix ff_h264_check_intra_pred_mode() return code check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '5eb488bfa835f2902a31ba99d57c16ae36c4f598'

* commit '5eb488bfa835f2902a31ba99d57c16ae36c4f598':
  h264: use explicit variable names for *_field_flag

Conflicts:
	libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'c1076d8479a6c0ee2e0c4b0e2151df5b0228438e'

* commit 'c1076d8479a6c0ee2e0c4b0e2151df5b0228438e':
  h264: check one context_init() allocation

Conflicts:
	libavcodec/h264.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '5a9a9d4a2abefa63d9a898ce26715453c569e89d'

* commit '5a9a9d4a2abefa63d9a898ce26715453c569e89d':
  lavc: Add refcounted api to AVPacket

Conflicts:
	libavcodec/avpacket.c
	libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/avpacket: Fix memory allocation failure check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '4ebc7d659f0da6c1305ca08cf4303959203fff4b'

* commit '4ebc7d659f0da6c1305ca08cf4303959203fff4b':
  rtmp: Use PRId64 when needed.

Merged-by: Michael Niedermayer <michaelni@gmx.at>