Permalink
Browse files

Removed commented out break and removed packet free since it is freed…

… at the end of the loop.

Changed write command.
  • Loading branch information...
1 parent d0b0234 commit 53745258dff37aefa70a9b7acdd9bb43582d3f97 @carsonmcdonald carsonmcdonald committed Apr 1, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 live_segmenter.c
View
@@ -295,12 +295,10 @@ int main(int argc, char **argv)
prev_segment_time = segment_time;
}
- ret = av_write_frame(output_context, &packet);
+ ret = av_interleaved_write_frame(output_context, &packet);
if (ret < 0)
{
fprintf(stderr, "Segmenter error: Could not write frame of stream: %d\n", ret);
- av_free_packet(&packet);
- //break; removed for streaming support
}
else if (ret > 0)
{

0 comments on commit 5374525

Please sign in to comment.