Browse Source

rtpdec_h264: Return proper error codes

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.11
Martin Storsjö 13 years ago
parent
commit
b7b7354c33
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/rtpdec_h264.c

+ 2
- 2
libavformat/rtpdec_h264.c View File

@@ -272,7 +272,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
av_log(ctx, AV_LOG_ERROR,
"Unhandled type (%d) (See RFC for implementation details\n",
type);
result= -1;
result = AVERROR(ENOSYS);
break;

case 28: // FU-A (fragmented nal)
@@ -319,7 +319,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
case 31: // undefined
default:
av_log(ctx, AV_LOG_ERROR, "Undefined type (%d)", type);
result= -1;
result = AVERROR_INVALIDDATA;
break;
}



Loading…
Cancel
Save