summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_h263_rfc2190.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-06-14 15:13:14 +0300
committerMartin Storsjö <martin@martin.st>2012-06-14 22:11:43 +0300
commitd1beee0701a41dd5716427060579b10c00c685be (patch)
tree5b0edefa7dbc962695669301ed896e6e327d8671 /libavformat/rtpdec_h263_rfc2190.c
parent9034b0ed66c8f4a0da13947618503d575fc43957 (diff)
rtpdec: Don't require frames to start with a Mode A packet
While there is no reason for starting a frame with anything else than a Mode A packet, some senders seem to consistently use Mode B packets for everything. This fixes depacketization of such streams. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h263_rfc2190.c')
-rw-r--r--libavformat/rtpdec_h263_rfc2190.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c
index a3a4825719..92102f3f51 100644
--- a/libavformat/rtpdec_h263_rfc2190.c
+++ b/libavformat/rtpdec_h263_rfc2190.c
@@ -132,7 +132,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
if (!data->buf) {
/* Check the picture start code, only start buffering a new frame
* if this is correct */
- if (!f && len > 4 && AV_RB32(buf) >> 10 == 0x20) {
+ if (len > 4 && AV_RB32(buf) >> 10 == 0x20) {
int ret = avio_open_dyn_buf(&data->buf);
if (ret < 0)
return ret;