Browse Source

rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features

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

+ 1
- 1
libavformat/rtpdec_h264.c View File

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


case 28: // FU-A (fragmented nal) case 28: // FU-A (fragmented nal)


+ 1
- 1
libavformat/rtpdec_vp9.c View File

@@ -223,7 +223,7 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
*/ */
if (has_ss_data) { if (has_ss_data) {
avpriv_report_missing_feature(ctx, "VP9 scalability structure data"); avpriv_report_missing_feature(ctx, "VP9 scalability structure data");
return AVERROR(ENOSYS);
return AVERROR_PATCHWELCOME;
} }


/* /*


Loading…
Cancel
Save