Skip to content

Commit

Permalink
-Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-gomez-windhover committed Dec 6, 2024
1 parent bc97cbd commit c2faf8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/windhoverlabs/com/video/VideoDataLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void streamVideoOverRTP() throws IOException {
AVCodec codec = avcodec_find_decoder(inputStream.codecpar().codec_id());
System.out.println("av_codec_is_decoder-->" + av_codec_is_decoder(codec));

System.out.println("av_codec_is_decoder-->" + av_codec_is_decoder(codec));
System.out.println("av_codec_is_encoder-->" + av_codec_is_encoder(codec));
if (codec == null) {
throw new IOException("Unsupported codec");
}
Expand All @@ -158,9 +158,6 @@ private void streamVideoOverRTP() throws IOException {

// Set up RTP output
System.out.println("Setting up RTP output: " + outputURL);
// if (avformat_alloc_output_context2(outputCtx, null, "rtp_mpegts", outputURL) < 0) {
// throw new IOException("Failed to create RTP output context");
// }

if (avformat_alloc_output_context2(outputCtx, null, "rtp_mpegts", outputURL) < 0) {
throw new IOException("Failed to create RTP output context");
Expand Down

0 comments on commit c2faf8f

Please sign in to comment.